[erlang-patches] Scan "=<<" as something useful

Rich Neswold rich.neswold@REDACTED
Tue Oct 8 14:24:20 CEST 2013


On Mon, Jun 10, 2013 at 9:50 AM, Raimo Niskanen <
raimo+erlang-patches@REDACTED> wrote:

> But I still think that forever forcing Erlang to need an infinite look ahead
> custom syntax aware scanner still is a strong argument against the suggested
> improvement.
>

The language designers used certain symbols multiple times in the grammar
which could create ambiguous scanning results. The compiler needs to
properly handle them, even if it means sacrificing the scanner's simplicity.

The C++ camp recently fixed a similar wart with nested templates. You used
to place a whitespace between the closing '>'s so the compiler didn't
confuse the closing of both template specifications with a shift operator
(>>). It now Does The Right Thing even though it was a special case.

-- 
Rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20131008/2761ef77/attachment.htm>


More information about the erlang-patches mailing list