<div dir="ltr">While I completely agree with this sentiment- I don't agree the good outweighs the bad here..<div><div><br></div><div>- I think it is a real language wart.</div><div>- I think it is inconsistent with other types.</div>
<div style>- I think time spent looking for this error is wasted time.</div><div>- I believe that at best this should warn and not error. </div><div style><br></div><div style>Lastly, I consider this a byproduct of incomplete scanning and should be corrected not celebrated..<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 27, 2013 at 11:09 PM, Robert Virding <span dir="ltr"><<a href="mailto:robert.virding@erlang-solutions.com" target="_blank">robert.virding@erlang-solutions.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">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.<br>
<br>Robert<br><br><hr><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid #1010ff"><b>From: </b>"Pedram Nimreezi" <<a href="mailto:mc@majorcomputing.com" target="_blank">mc@majorcomputing.com</a>><br>
<b>To: </b>"Sean Cribbs" <<a href="mailto:sean@basho.com" target="_blank">sean@basho.com</a>><br><b>Cc: </b>"Erlang Patches" <<a href="mailto:erlang-patches@erlang.org" target="_blank">erlang-patches@erlang.org</a>><br>
<b>Sent: </b>Monday, 22 April, 2013 11:06:24 AM<br><b>Subject: </b>Re: [erlang-patches] Scan "=<<" as something useful<div><div class="h5"><br><br><div dir="ltr">Good erlang wart to remove... +1</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Apr 22, 2013 at 12:21 AM, Sean Cribbs <span dir="ltr"><<a href="mailto:sean@basho.com" target="_blank">sean@basho.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I can't count how many times this has bitten me, kudos.</div><div class="gmail_extra"><div><div>
<br><br><div class="gmail_quote">On Sun, Apr 21, 2013 at 11:15 PM, Anthony Ramine <span dir="ltr"><<a href="mailto:n.oxyde@gmail.com" target="_blank">n.oxyde@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I've noticed that Erlang/OTP own code tend to be space-free, e.g. {a,<br>
b} is rather written as {a,b}. Then there is the occasional Bin=<br>
<<42>> with a space because erl_scan will scans "=<<" as '=<','<'<br>
instead of '=','<<'. This patch teaches erl_scan how to not do that.<br>
<br>
There is no backwards compatibility problem as '=<','<' can't appear<br>
in valid code.<br>
<br>
git fetch <a href="https://github.com/nox/otp.git" target="_blank">https://github.com/nox/otp.git</a> disambiguate-equal-binary<br>
<br>
<a href="https://github.com/nox/otp/compare/disambiguate-equal-binary" target="_blank">https://github.com/nox/otp/compare/disambiguate-equal-binary</a><br>
<a href="https://github.com/nox/otp/compare/disambiguate-equal-binary.patch" target="_blank">https://github.com/nox/otp/compare/disambiguate-equal-binary.patch</a><br>
<br>
Regards,<br>
<br>
--<br>
Anthony Ramine<br>
_______________________________________________<br>
erlang-patches mailing list<br>
<a href="mailto:erlang-patches@erlang.org" target="_blank">erlang-patches@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-patches" target="_blank">http://erlang.org/mailman/listinfo/erlang-patches</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br>Sean Cribbs <<a href="mailto:sean@basho.com" target="_blank">sean@basho.com</a>><div>Software Engineer</div>
<div>Basho Technologies, Inc.</div><div><a href="http://basho.com/" target="_blank">http://basho.com/</a></div>
</font></span></div>
<br>_______________________________________________<br>
erlang-patches mailing list<br>
<a href="mailto:erlang-patches@erlang.org" target="_blank">erlang-patches@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-patches" target="_blank">http://erlang.org/mailman/listinfo/erlang-patches</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>/* Sincerely<br>-------------------------------------------------------------- <br>Pedram Nimreezi - Chief Technology Officer */<div><br></div><div>// The hardest part of design … is keeping features out. - Donald Norman</div>
<div><br></div><div><br></div>
</div>
<br>_______________________________________________<br>erlang-patches mailing list<br><a href="mailto:erlang-patches@erlang.org" target="_blank">erlang-patches@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-patches" target="_blank">http://erlang.org/mailman/listinfo/erlang-patches</a><br>
</div></div></blockquote><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>/* Sincerely<br>-------------------------------------------------------------- <br>Pedram Nimreezi - Chief Technology Officer */<div>
<br></div><div>// The hardest part of design … is keeping features out. - Donald Norman</div><div><br></div><div><br></div>
</div></div>