<div dir="ltr">An edge case does not necessarily negate an entire philosophy.<div>e.g. "I dont' steal from others" ++ "Yup, that book of Post-Its came from my Office"</div><div><br></div><div>Cheers</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 22, 2014 at 6:58 AM, Vlad Dumitrescu <span dir="ltr"><<a href="mailto:vladdu55@gmail.com" target="_blank">vladdu55@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><p dir="ltr"><br>
On 22 Feb 2014 12:43, "Anthony Ramine" <<a href="mailto:n.oxyde@gmail.com" target="_blank">n.oxyde@gmail.com</a>> wrote:<br>
><br>
> Erlang is made to be boring. Boring means that it needs to be brain dead easy to comprehend. Brain dead easy means no macros. </p>
</div><p dir="ltr">Sorry, but -define () macros can be just as confusing as lispy ones... I would gladly trade them away. </p><span class="HOEnZb"><font color="#888888">
<p dir="ltr">/Vlad</p></font></span><div class="HOEnZb"><div class="h5">
<p dir="ltr">> Given the premise of the absence of macros, why should the language use S-expressions and be homoiconic?<br>
><br>
> Why do you need to change the AST? That sounds like a constructed need from a bored developer looking for a problem. If you want better parse transforms, help me finish brackets for 19.0.<br>
><br>
> <a href="https://github.com/nox/otp/commit/brackets" target="_blank">https://github.com/nox/otp/commit/brackets</a><br>
><br>
> I don’t see how could you compare C++ and Java to Erlang, certainly not on the front of syntax. Erlang is a tiny language.<br>
><br>
> So to get back to the first question: because macros do not promote explicitness.<br>
><br>
> Regards,<br>
><br>
> --<br>
> Anthony Ramine<br>
><br>
> Le 22 févr. 2014 à 10:14, Maxim Velesyuk <<a href="mailto:loz.accs@gmail.com" target="_blank">loz.accs@gmail.com</a>> a écrit :<br>
><br>
> > For a long time I wonder why erlang syntax is not based on s-expressions? Did Creators debate on it, if yes, why had prolog-like syntax won?<br>
> ><br>
> > Often when I feel I need to change ast I remember how clumsy and uncomfortable parse transform is, so I overcome myself and make workarounds.<br>
> ><br>
> > But macros are still useful, programmers use parse transform when they have no other choice, and projects like merl appear.<br>
> ><br>
> > List and zip comprehensions could be implemented as macros, ets and mnesia query language is actually prefix-notation language with code quoting, even pattern matching and so long expected maps could be just a libraries.<br>
> ><br>
> > Take a look at c++ and java, how they suffer from inventing new syntax. Hopefully Erlang will not turn in such syntax-monster. It has syntax for many things, but it still not as flexible as it could be.<br>
> ><br>
> > This forwards me back to my first question, why?<br>
> > _______________________________________________<br>
> > erlang-questions mailing list<br>
> > <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
> > <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</p>
</div></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div style="font-family:Helvetica;word-wrap:break-word"><div style="margin:0in 0in 0.0001pt"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:15px"><b><div style="font-style:italic;margin:0px;font-family:Calibri">
<b style="color:rgb(17,85,204)"><a href="http://www.gravatar.com/avatar/204a87f81a0d9764c1f3364f53e8facf.png" style="color:rgb(17,85,204)" target="_blank">Mahesh Paolini-Subramanya</a></b></div><div style="margin:0px;font-family:Calibri">
<span style="font-weight:normal">That tall bald Indian guy..</span><br></div></b></span></font></div></div><div style="font-family:Helvetica;word-wrap:break-word"><div style="margin:0in 0in 0.0001pt"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:15px"><b><div style="margin:0px;font-family:Calibri">
<div style="font-family:Helvetica;word-wrap:break-word"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span style="font-size:11pt;font-family:Calibri,sans-serif"><div style="margin:0px;font-family:Calibri;color:rgb(1,108,226)">
<a href="https://plus.google.com/u/0/108074935470209044442/posts" style="color:rgb(17,85,204)" target="_blank">Google+</a><span style="color:rgb(31,73,125)"> | <a href="http://dieswaytoofast.blogspot.com/" style="color:rgb(17,85,204)" target="_blank"><span style="color:rgb(1,108,226)">Blog</span></a></span> <span style="color:rgb(31,73,125)"> | <span style="color:rgb(1,108,226)"><a href="https://twitter.com/dieswaytoofast" style="color:rgb(17,85,204)" target="_blank">Twitter</a></span></span><span style="color:rgb(31,73,125)"> | </span><a href="http://www.linkedin.com/in/dieswaytoofast" style="color:rgb(17,85,204)" target="_blank">LinkedIn</a></div>
</span></div></div></div></b></span></font></div></div></div>
</div>