News for hackers. Stuff that matters.
Re:Common Lisp, Clojure and Evolution by gcv on Sunday February 27, 2011 @01:06PM (#2268375)
First of all, Clojure has struct-map, which supports keywords, much like default Common Lisp struct constructors.

Second, Clojure's defstruct is on its way out. defrecord provides similar functionality with far better performance. By default, however, it does have the positional-arguments-only flaw. My personal favorite workaround is a small macro from this post: http://groups.google.com/group/clojure/msg/5206fac13144ea99

No comment about numerical operations in Clojure: it's a sensitive topic. :)

Re:Common Lisp, Clojure and Evolution by mahmud on Sunday February 27, 2011 @01:15PM (#2268407)
Even the manual recommends records in lieu of struct-map.

And yes, that flaw is icky; one of the few in Hickey's otherwise excellent track-record in good taste.

Re:Common Lisp, Clojure and Evolution by amouat on Sunday February 27, 2011 @04:14PM (#2268986)
The manual? What's the manual?
Re:Common Lisp, Clojure and Evolution by whateverer on Sunday February 27, 2011 @04:21PM (#2269006)
Here: http://clojure.org/data_structures, see the entry for StructMaps. The page on datatypes* also implies heavily that structs have been phased out in favor of records, as no reason to use structs over records is presented.

* http://clojure.org/datatypes

Re:Common Lisp, Clojure and Evolution by lukev on Sunday February 27, 2011 @03:55PM (#2268926)
The defrecord constructor-by-map feature is actively being worked on for version 1.3.