User: Password:
|
|
Subscribe / Log in / New account

Clojure - many Lisp implementations compiled, syntax alternatives

Clojure - many Lisp implementations compiled, syntax alternatives

Posted Jun 8, 2009 14:24 UTC (Mon) by dwheeler (guest, #1216)
In reply to: A look at two new languages: Vala and Clojure by flewellyn
Parent article: A look at two new languages: Vala and Clojure

Quite true. Many Lisp-based implementations include compilers, and many can generate very nice code (especially if given some type hints).

Some people are put off by Lisp's syntax ((((((lots of parens, no built-in infix)))))). If you're one of them, you might want to check out this page on making Lisps readable, in particular, sweet expressions.


(Log in to post comments)

Clojure - many Lisp implementations compiled, syntax alternatives

Posted Jun 8, 2009 15:30 UTC (Mon) by flewellyn (subscriber, #5047) [Link]

Personally, I find the parens much less difficult to deal with than the soup of braces, brackets, angle-brackets, semicolons, and the like that you get with languages like C++, Java, or C#. And the fact that there is no operator precedence (because there is no infix) means that there is no precedence lossage, and I can tell at a glance which operators will be called just by their position, without having to remember precedence rules.

Granted, the parens would be hard to keep track of without a good editor like Emacs, but I find the same to be true of other languages, be they braces-and-semicolon languages like C\C++\Java\PHP\Javascript\whatever, or whitespace-significant like Python. A good editor is essential no matter what.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds