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

Anthony Ramine <>
Wed May 1 14:44:22 CEST 2013


I added a commit to disambiguate the <<<..<< case too. I also rewrote my original code so that it doesn't use lists:duplicate/2 and added a test that checks whether giving 'eof' to a continuation returned from my infinite look-ahead trick does the right thing.


Anthony Ramine

Le 30 avr. 2013 à 18:23, Kostis Sagonas a écrit :

> On 04/30/2013 11:23 AM, Anthony Ramine wrote:
>> Hello Kostis,
>> Do you really think this need to be changed if my patch is accepted? I wanted to fix an ambiguity that surprises people, not an ambiguity nobody encounters.
> I think I made it pretty clear that I think that the breaking of <<< into tokens should also be changed in a similar way.
> Granted this case might surprise less people, but I tend to prefer technical arguments rather than "suprise" ones. Technically the issues involved in how to break =<< vs <<< into tokens are very very similar if not the same as far as erl_scan is concerned -- and are unrelated to people's surprise level.
> Kostis

More information about the erlang-patches mailing list