8 ms·
I'm still a clojure newb, but if I understand you correctly: >> I recall some debate about changing this so you can implement them using the native abstraction
by craigching 14y ago
I'm still a clojure newb, but if I understand you correctly:
>> I recall some debate about changing this so you can implement them using the native abstraction facilities in clojure (protocols)
You mean records (defrecord): http://clojure.org/datatypes http://clojure.org/datatypes
- mjw 14y agoNot quite, I'm talking about replacing the various important java interfaces in clojure.lang (IFn, ISeq, IPersistentMap etc) with protocols, so you can implement them yourself without using any Java-specific language features. Dunno how feasible this is, but if a language is going to define its own abstraction features (here, protocols) on top of the underlying platform, it would seem cleaner to eat ones own dogfood in using these abstraction facilities for the core abstractions which the language and its core library are based on.