News for hackers. Stuff that matters.
Re:Ivy – An interpreter for an APL-like language by mananaysiempre on Sunday August 07, 2022 @09:09AM (#32376208)
Quick, what should be the order of precedence among (binary!) flip, transp, rot, rho, and iota?

APL / Ivy have so many operators a conventional precedence order would likely be completely impossible to remember or work with.

(One option I’d consider viable in general would be to define associativity and perhaps compatible groups like {+, -} or {*, /} but force explicit parentheses when operators from different groups are used, but that wouldn’t feel like a calculator.)

There are no comments on this comment yet.