[Python-ideas] Date/time literals
Nick Coghlan
ncoghlan at gmail.com
Sun May 30 09:27:18 CEST 2010
On 30/05/10 13:10, Marcos Bonci wrote:
> And I still fail to see any disadvantage in having date and time
> literals (probably as shortcuts for the already existing datetime types,
> or a future version of them).
The same disadvantage that any new syntax has: it increases the size of
the language, making it harder to learn and harder to implement.
Why make date/time literals a special case, when they can be dealt with
quite adequately as a standard module? (the existing module may have
some odd quirks, but that's a far cry from needing to be given literal
syntax).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-ideas
mailing list