Re: Accumulator syntax breaks precedence

"Mark S. Miller" <[email protected]>
Newsgroups gmane.comp.lang.e.general
Message-ID <[email protected]>
On Mon, Jan 31, 2011 at 5:41 PM, Kevin Reid <kpreid-M/[email protected]> wrote:

> ? 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?
>

No disagreement. That's why it's still off by default. What replacements do
you have in mind?



>
> --
> Kevin Reid                                  <http://switchb.org/kpreid/>
>
> _______________________________________________
> e-lang mailing list
> [email protected]
> http://www.eros-os.org/mailman/listinfo/e-lang
>



-- 
    Cheers,
    --MarkM

_______________________________________________
e-lang mailing list
[email protected]
http://www.eros-os.org/mailman/listinfo/e-lang
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.