3 ms·
And in Clojure: (let [a 123 b 456 c 789] ...) Clojure syntax was designed with a clear and deliberate attempt to remove man
by hellofunk 9y ago
And in Clojure:
(let [a 123
b 456
c 789]
...)
Clojure syntax was designed with a clear and deliberate attempt to remove many of the parenthesis from lisp syntax. This is just a part of the greater design goal of offering very concise and elegant syntax in general, which is one of the reasons I keep coming back to it.
- civility 9y agoYep, Clojure made some nice improvements (still 4 parens, however), but I just can't get excited about the JVM.
- hellofunk 9y ago> (still 4 parens, however) My example has 2 parens. Even if you're not excited about the JVM, ClojureScript is particularly productive for front end development, where I genuinely love it tremendously.
- technion 9y agoThe JVM does solve the distribution problem that's heavily frustrated me with other platforms. I can create a great tool in Ruby for example, but asking a computer illiterate to run it in Windows isn't going to happen. You can however hand that person a .jar from Clojure and ask them to run it.
- megaman22 9y agoAssuming they have Java installed. Which, in my experience, is less and less likely as time goes on, for random samplings of non-developer Windows boxes.
- kuschku 9y agoNot anymore! Java now can link JVM, runtime, and your own modules into a bundle that just works and runs everywhere. On Linux, you’re even able to compile most of it into a single binary.
- mmargerum 9y agoSpeaking as a beginner, I find the pure lisp example easier to read than the one with the clojure literal syntax. I actually don’t like the []. I’m sure I’ll get used to it tho