News for hackers. Stuff that matters.
Re:Pyret Programming Language by kazinator on Tuesday August 24, 2021 @05:13AM (#28286517)
What's the point of an infix syntax that demands obvious. unnnecessary parentheses, as a matter of correctness?

"grouping level" is a cringe-inducing dumbing down of proper terminology. It suggests associativity, but associativity does not have levels. It must be referring to "precedence".

= and / are not at the same level of precedence in basic mathematics!

In elementary school you learn

  y = x / 2
without requiring parentheses.

It makes sense to require parentheses when exotic, unfamiliar operators are involved for which the precedence and associativity would be hard to remember.

Not for operators drilled into your head by sixth grade.

There are no comments on this comment yet.