[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why does this work: ('5'):rep(4) --> 5555 ?
- From: Coda Highland <chighland@...>
- Date: Wed, 10 Sep 2014 10:39:19 -0700
On Wed, Sep 10, 2014 at 10:28 AM, Axel Kittenberger <axkibe@gmail.com> wrote:
> The question should rather be, why do you need brackets for this?
>
> I'd expect
>
> '5':rep( 10 ).
>
> to work.
IIRC, the prefixexp grammar was designed this way to avoid an
ambiguity in certain cases. I don't know what those cases are offhand,
but I'm sure it wouldn't take that much to look it up in the ML
archives.
/s/ Adam