Re:Why Lisp is Awesome
by DrJokepu on Wednesday January 06, 2010 @03:49PM
(#1035715)
Many of these features are actually quite common in other languages. For example, C# has lambdas, functions as first class objects, closures, dynamic programming, null coalescence etc. The real power of Lisp in my opinion is not the existence of these features but the way they perfectly fit into the S-Expression syntax.
[ Parent
| on HN ]
Re:Why Lisp is Awesome
by abstractbill on Wednesday January 06, 2010 @04:07PM
(#1035762)
Right. Mainstream languages have been gradually evolving towards Lisp but until they adopt a simple uniform syntax they won't get real macros, which I think is the biggest difference between Lisp and other languages today.
I believe that appreciating Lisp's minimalistic, tree-like syntax requires a very mathematical way of thinking. Many (perhaps most) developers have a different way of thinking. There's nothing wrong with that, diversity is a good thing but because of that, I don't think that the S-Expression syntax will ever become "mainstream".
Re:Why Lisp is Awesome
by abstractbill on Wednesday January 06, 2010 @04:22PM
(#1035798)
I think I agree... I'm undecided though. I actually find JSON to be a positive development, and potentially a step in this direction (i.e. the fact that people now use javascript literal data syntax as a way of serializing general data, and the syntax has been written down somewhere quite carefully and is not too verbose or ugly - at least compared to something like xml). Who knows how far the mainstream will take this though...
It is already.
XML is full of prefix, nested syntax.
Re:Why Lisp is Awesome
by abstractbill on Wednesday January 06, 2010 @06:56PM
(#1036129)
Yes, but nobody would seriously write a programming language that used XML for its syntax.
So you say existing XML-based programming languages were 'written' by non-serious people?
'Water':
<defmethod test_true source=required="ek_string">
<try <if> source.<execute_string/>.<not/>
<concat "Busted: "source/>.<print/>
else “OK”
</if>
>
<concat "Errored: " source/>.<print/>
</try>
</defmethod>
See also XSLT, XL, RuleML, ...
Re:Why Lisp is Awesome
by abstractbill on Wednesday January 06, 2010 @08:17PM
(#1036233)
So you say existing XML-based programming languages were 'written' by non-serious people?
Whether or not the people who wrote (sorry, I guess "designed" is the more appropriate word) these languages were serious, I do believe they are a dead-end.