[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: if vs. when vs. and: style question

From: Pascal J. Bourguignon
Subject: Re: if vs. when vs. and: style question
Date: Wed, 25 Mar 2015 01:20:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Emanuel Berg <> writes:

> If what you mean by "weaker" is some attempt at
> a formalization of "you can do less" then I do not
> agree that should be preferred by definition.
> For example, here
>     (1+ 5)  ; 6
>     (+ 1 5) ; 6

But then, why stop with +?

You could use instead:

   (funcall (additive-operator (ring integer))
            (neutral-element (multiplicative-operator (ring integer)))
            5) ; 6

or something even more general?

__Pascal Bourguignon__       
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk

reply via email to

[Prev in Thread] Current Thread [Next in Thread]