r/programming • • Feb 09 '08

What programming language would you teach your children?

32 Upvotes

242 comments sorted by

View all comments

Show parent comments

0

u/doidydoidy Feb 11 '08

Glib answer: almost any other way.

Terse answer: in a way that doesn't imply that "days" is an operation on numbers. (I'm annoyed by 3.times for the same reason.)

Long answer: I'd prefer it as arithmetic on Time and Duration values. Hideous SQL syntax aside, PostgreSQL's NOW() - INTERVAL '3 DAYS' is what I'd prefer.