Hello, 
On 22-Oct-99, [EMAIL PROTECTED] wrote:

> 
> -- Hi folks,
> Has anyone noticed and previously reported the fact the + and - used as
> prefix operators act asimmetrically? + performs an addition on two
> arguments, - turns the first argument into a negative value, discards it
> and returns the second argument:
> 
>>> - 3 4
> == 4
> 
> Do you find this to be intuitive, reasonable, preferable?

And what about more than 2 arguments?

>> + 3 4
== 7
>> + 3 4 5
== 5
>> + 3 4 + 5
== 13
>> + 3 4 + 5 6
== 6
>> + 3 4 + 5 + 6
== 24

Confusing.  Why does 3+4+5=13, and 3+4+5+6=24?  I prefer the standard
algebraic notation anyway, visually more predictable.

>> 3 + 4
== 7
>>  3 + 4 + 5
== 12
>> 3 + 4 + 5 + 6
== 18

2.1.2.1.1
I'll look at this again when I try the beta or full 2.2

Elliott

Reply via email to