Re: Standard library - date and time
- Posted by yuku <yuku at ikitek.c??> Apr 22, 2008
- 1061 views
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}.