[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Operator precedence and unary minus
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 22 May 2018 00:56:30 +0200
2018-05-21 23:48 GMT+02:00 Tim Hill <email@example.com>:
>> On May 21, 2018, at 2:45 PM, Dirk Laurie <firstname.lastname@example.org> wrote:
>> 2018-05-21 22:47 GMT+02:00 Egor Skriptunoff <email@example.com>:
>>> That's why in Lua we have an unpleasant surprise:
>>> - a%m - b%n ~= - b%n - a%m
>>> It's looks very weird.
>>> That should be an equality as in all other programming languages.
>> All? Let's try APL.
>> a←10 ⋄ b←20 ⋄ m←3 ⋄ n←4
> All SANE languages? :)
APL is the only sane language :-) No precedence. Very little syntax,