<div dir="ltr">+1<br><br>It is useless mess. It is not improving readability, reliability nor whatever other.<br><br><div class="gmail_quote">On Wed, Jul 30, 2008 at 11:13 AM, Anthony Shipman <span dir="ltr"><<a href="mailto:als@iinet.net.au">als@iinet.net.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">A recent eep says<br>
<br>
Currently, Erlang has<br>
<br>
Pattern <- Expr<br>
<br>
to enumerate over the elements of a single list and<br>
<br>
Pattern <= Expr<br>
<br>
to enumerate over a binary. EEP 12 [1] adds<br>
<br>
Pattern [<-] List<br>
Pattern {<-} Tuple<br>
Pattern <<<->> Binary<br>
<br>
Why the plethora of obscure arrow symbols? We should only need the one arrow.<br>
Since it is a dynamic language the system should know what type of collection<br>
is supplied and iterate appropriately.<br>
<br>
With the above symbols if I change a string from a list to a binary I've got<br>
to go and change all of the comprehensions.<br>
<br>
The funny symbols are a kind of type annotation by stealth that is quite<br>
irregular in the language.<br>
<font color="#888888"><br>
--<br>
Anthony Shipman Mamas don't let your babies<br>
<a href="mailto:als@iinet.net.au">als@iinet.net.au</a> grow up to be outsourced.<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>--Hynek (Pichi) Vychodil<br>
</div>