try/catch idiom in std.datetime
Jesse Phillips
Jesse.K.Phillips+D at gmail.com
Thu Nov 21 07:38:48 PST 2013
On Thursday, 21 November 2013 at 07:44:44 UTC, Jonathan M Davis
wrote:
> As I understand it, when Walter is talking about a validator
> function, _all_
> it does is validate the input. It doesn't operate on the data
> beyond doing validation
I doubt Walter first checks that a file is a valid D program
before tokenizing. More importantly he probably would not go for
such a change.
The thing is, ISO String isn't a date, we first need to create a
date and in doing so we validate it is valid and never have to
check again.
More information about the Digitalmars-d
mailing list