Re: Standard library - date and time

new topic     » goto parent     » topic index » view thread      » older message » newer message

c.k.lester wrote:
> Is this for in a lib or in the interpreter?
> 
> A date sequence will be { year:any integer value, month:integer 1-12,
> day:integer 1-28|29|30|31 depending on month }
> 
> I don't think types are necessary. Would it allow for some optimizations?

In the lib. Keep euphoria have 4 types atom integer object sequence.

Yes, I also think that types are not necessary, but nevertheless we use
types there for error checking. User and eu2c can use without type_check for
performance. 

Types are also used in file.e and Rob's standard library.

Probably (still probably) datetime will be more efficient using atom as 
the internal representation than {year, month, date}.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu