Make dur a property?
Nick Sabalausky
SeeWebsiteToContactMe at semitwist.com
Wed Jan 23 15:07:48 PST 2013
On Wed, 23 Jan 2013 21:33:07 +0100
Jacob Carlborg <doob at me.com> wrote:
>
> This is how it should look like. Date ranges in Ruby on Rails can be
> really beautiful:
>
> date = 2.days.ago
>
Honestly, I really don't like that. It trades clear semantics for a
bunch of magic to achieve the dubious goal of making code look more
like English (a notably high-ambiguity language). If I valued languages
imitating English, I'd be doing everything in HyperCard or COBOL or
some other such design blunder.
More information about the Digitalmars-d
mailing list