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

Sean Cribbs <>
Mon Apr 22 06:21:57 CEST 2013


I can't count how many times this has bitten me, kudos.


On Sun, Apr 21, 2013 at 11:15 PM, Anthony Ramine <> wrote:

> Hello,
>
> I've noticed that Erlang/OTP own code tend to be space-free, e.g. {a,
> b} is rather written as {a,b}. Then there is the occasional Bin=
> <<42>> with a space because erl_scan will scans "=<<" as '=<','<'
> instead of '=','<<'. This patch teaches erl_scan how to not do that.
>
> There is no backwards compatibility problem as '=<','<' can't appear
> in valid code.
>
>         git fetch https://github.com/nox/otp.git disambiguate-equal-binary
>
>         https://github.com/nox/otp/compare/disambiguate-equal-binary
>         https://github.com/nox/otp/compare/disambiguate-equal-binary.patch
>
> Regards,
>
> --
> Anthony Ramine
> _______________________________________________
> erlang-patches mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-patches
>



-- 
Sean Cribbs <>
Software Engineer
Basho Technologies, Inc.
http://basho.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20130422/b998c587/attachment.html>


More information about the erlang-patches mailing list