Hi,

On 6 Mai, 03:38, gary ng <garyng2...@gmail.com> wrote:

> I am writing a toy DSL where I would like it to be able to do something like
> this:
>
> (+ today 3) => a date which is 3 days from today
> (+ 1 2) => 3
>
> such that the following is possible
>
> (+ today (- 14 remind-prior))
> => 2 weeks from today - a fixed remind before days
> => a date when I am going to be reminded for an event 2 weeks from today

I'm deeply suspicious of such a behaviour. Why would + on a
date mean adding days? Why not hours? minutes? seconds?
months? years? I would always prefer plus-days over such a
behaviour, because I wouldn't have to think everytime, what +
adds.

But that is only a matter of taste, I fancy.

Sincerely
Meikel

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to