Re:How to Understand and Use Common Lisp
by cyberbanjo on Sunday May 14, 2023 @04:55PM
(#35941289)
Java I am unsure about, but Clojure does support multiple dispatch
https://clojure.org/reference/multimethods
Re:How to Understand and Use Common Lisp
by schemescape on Sunday May 14, 2023 @07:21PM
(#35942246)
Thanks for the correction!
Re:How to Understand and Use Common Lisp
by amitprayal on Monday May 15, 2023 @08:14AM
(#35946993)
I think Clojure syntax is more intuitive than CL , at least to someone who has not spend a lot of time in CL
One e.g. I can see for "destructuring"
(let [ [a b c] [1 2 3]] (+ a b c))
as opposed to
(multiple-value-bind (a b c) (values 2 3 5) (+ a b c))
CL also has multiple dispatch and I’m not sure but I don’t think Java supports that.
I’m curious to see other responses. I’m also interested in the reverse: why Clojure over CL? (I assume integration with Java and immutable data structures, but there’s probably more.)