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

Ulf Wiger ulf@REDACTED
Sun Apr 28 06:40:29 CEST 2013


Well, the rest of the syntax *does* support not having spaces between operators, and It's a common enough style too.

BR,
Ulf W

Ulf Wiger, Feuerlabs, Inc.
http://www.feuerlabs.com

28 apr 2013 kl. 05:09 skrev Robert Virding <robert.virding@REDACTED>:

> I don't want to be a wet blanket but I feel that in general having blanks between operators is a Good Thing which improves legibility. So I don't really like a syntax change which supports not having blanks between operators.
> 
> Robert
> 
> From: "Pedram Nimreezi" <mc@REDACTED>
> To: "Sean Cribbs" <sean@REDACTED>
> Cc: "Erlang Patches" <erlang-patches@REDACTED>
> Sent: Monday, 22 April, 2013 11:06:24 AM
> Subject: Re: [erlang-patches] Scan "=<<" as something useful
> 
> Good erlang wart to remove...  +1
> 
> 
> On Mon, Apr 22, 2013 at 12:21 AM, Sean Cribbs <sean@REDACTED> wrote:
>> I can't count how many times this has bitten me, kudos.
>> 
>> 
>> On Sun, Apr 21, 2013 at 11:15 PM, Anthony Ramine <n.oxyde@REDACTED> 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
>>> erlang-patches@REDACTED
>>> http://erlang.org/mailman/listinfo/erlang-patches
>> 
>> 
>> 
>> -- 
>> Sean Cribbs <sean@REDACTED>
>> Software Engineer
>> Basho Technologies, Inc.
>> http://basho.com/
>> 
>> _______________________________________________
>> erlang-patches mailing list
>> erlang-patches@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-patches
> 
> 
> 
> -- 
> /* Sincerely
> -------------------------------------------------------------- 
> Pedram Nimreezi - Chief Technology Officer  */
> 
> // The hardest part of design … is keeping features out. - Donald Norman
> 
> 
> 
> _______________________________________________
> erlang-patches mailing list
> erlang-patches@REDACTED
> http://erlang.org/mailman/listinfo/erlang-patches
> 
> _______________________________________________
> erlang-patches mailing list
> erlang-patches@REDACTED
> http://erlang.org/mailman/listinfo/erlang-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20130428/f9ff23ff/attachment.htm>


More information about the erlang-patches mailing list