Discussion: Time span literal
Time span literal
Daniel LeuckSat Nov 18 10:55:38 HST 2006
- Previous message: Time span literal
- Next message: Time span literal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]
> One other thing, though; are date/time literals allowed to be broken up between lines? No, unless a "\" is used at the end of the line to connect it to the next line. _____ From: Jesse Weaver [mailto:pianohacker at gmail.com] Sent: Saturday, November 18, 2006 9:43 AM To: sdl-developers at ikayzo.org Subject: Re: Time span literal On 11/18/06, Daniel Leuck <dan at ikayzo.com> wrote: Hi Jesse, The reason it's setup that way is that xx:xx is extremely ambiguous. It could be minutes and seconds, hours and minutes, a time, etc. When prefixed with a date, its clear that you are dealing with hours and minutes rather than minutes and seconds. One of SDL's design goals is that the literals be clear and unambiguous, even if you don't know the language spec. Dan Ah, gotcha. Thanks for your quick reply. One other thing, though; are date/time literals allowed to be broken up between lines? -- Jesse ----------- There is a theory which states that if anybody ever discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable. There is another theory which states that this has already happened. - Douglas Adams, author of Hitchhiker's Guide to the Galaxy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://ml.ikayzo.org/pipermail/sdl-developers/attachments/20061118/21ff9483/attachment.htm>
- Previous message: Time span literal
- Next message: Time span literal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]










