Accumulator syntax breaks precedence
Kevin Reid <kpreid-M/[email protected]>
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Message-ID | <[email protected]> |
? e`pragma.enable("accumulator"); accum 0 while (a) { _ * b + c }`
# value: e`null
...
# accum__1 := accum__1.multiply(b.add(c))
...
The accumulator syntax effectively forces the leftmost operator to be
lowest-precedence. This seems Very Surprising.
I'm mentally filing this as yet another reason the accumulator syntax
needs to be killed and replaced with something less special; any
disagreement?
--
Kevin Reid <http://switchb.org/kpreid/>