Re:Ferret – A free software Clojure implementation
by christophilus on Monday August 07, 2017 @08:22PM
(#14952415)
I like Clojure for its encouragement of functional, immutable-first programming. That, and I find its syntax for function parameters, data-structure literals, etc to be preferable.
[ Parent
| on HN ]
Re:Ferret – A free software Clojure implementation
by kbp on Tuesday August 08, 2017 @11:08AM
(#14958566)
Why not Racket? It has a similar emphasis on immutable, functional programming, it's also a Lisp-1 (I assume that's what you mean by "syntax for function parameters"), and the different syntax for data-structure literals I have to imagine is a pretty minor point.
Re:Ferret – A free software Clojure implementation
by mclehman on Tuesday August 08, 2017 @04:57PM
(#14962635)
I think they meant that function parameters are vectors when defining a function:
(defn foo [arg1 arg2 & rest] ...)
As for data-structure literals, it's nice to be able to write [1 2 3] vs (vec '(1 2 3))
{:key1 "val1", :key2 "val2"} vs (hash-map :key1 "val1" :key2 "val2")
Agreed, all pretty minor points, but all nice to have. Function arguments are easily distinguishable and creating maps/vectors is simplified.