Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Arithmetics Operator Priority

Name: Anonymous 2013-07-17 2:06

Is it really worth it?

Because common operations like (A+B)/2 are more readable without operator priority A+B/2. I know priority exists because of linear algebra liek A*X+B*Y+C, which otherwise require A*X+(B*X)+C, but in real life no one uses linear algebra beyond simple A*X+C.

So I propose prioritary equality for all operators.

Name: Anonymous 2013-07-18 5:11

>>15
Actually, Lisp/Scheme does exactly that. "-123" is a negative number, while "- 123" is a symbol "-" and a number "123"

Same for Symta, because the "," delimiter makes lists unreadable and ugly {1,2,3,4} instead of neat (1 2 3 4), so I use spaces to disambiguate between unary and binary "-". Other alternative is to use "~", but it would confuse newbies if I ever release Symta.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List