[Bese-devel] Re: Another parenscript issue
Luca Capello
luca at pca.it
Mon Nov 27 15:22:21 UTC 2006
Hello!
On Mon, 27 Nov 2006 15:41:34 +0100, Pierre THIERRY wrote:
> Scribit Marco Baringer dies 27/11/2006 hora 15:19:
>> does this work:
[...]
> Well, maybe the notion of neutral operand (not sure if it's the correct
> ENglish term) would fit there: 0 for + and -, 1 for * and /:
>
> (js:js* '(- 4)) ==> "-4;" ; 0-4
> (js:js* '(+ 4)) ==> "4;" ; 0+4
> (js:js* '(/ 4)) ==> "1/4;" ; 1/4
> (js:js* '(* 4)) ==> "4;" ; 1*4
>
>> or do we want to be smart and special case just - ?
>
> I'll say special case either just '- or both '- and '/.
FWIW, I'd prefer a similar output for the four cases, thus to be not
smart neither special, it's just "better" at my sight ;-)
Thx, bye,
Gismo / Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20061127/14402112/attachment.sig>
More information about the bese-devel
mailing list