hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit f0fc0fd091dbb15baf4847983917bec1bec200dd
parent 6c68f0163ba62554c1b2f750c25fe723c0de83f8
Author: Byron Torres <b@torresjrjr.com>
Date:   Sat, 29 Jan 2022 18:56:51 +0000

new(): comment and prepose new parameter signature

Signed-off-by: Byron Torres <b@torresjrjr.com>

Diffstat:
Mdatetime/datetime.ha | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/datetime/datetime.ha b/datetime/datetime.ha @@ -82,8 +82,18 @@ fn init() datetime = datetime { // as the clock jumped back 1 hour from 03:00 CEST to 02:00 CET. // // TODO: Implement as described. +// // TODO: Allow and correct for overflowing units like Golang? Most likely not. // Defeats the purpose of validation at creation. I see little benefit. +// +// TODO: use the following function signature?: +// +// fn new(loc: <...>, zo: <...>, values: int...) +// +// Which would allow shorter calls when precision is not necessary: +// +// new(UTC, 0, 1972, 09) // 1972-09-01 00:00:00.000000000 +0000 UTC +// export fn new( year: int, month: int,