3 ms·
Are you seriously asking me if a programming language allows for the implementation of data-structures? If you mean can users extend the core CL data-types, no
by mahmud 14y ago
Are you seriously asking me if a programming language allows for the implementation of data-structures?
If you mean can users extend the core CL data-types, no, but you have a wealth of tools to do that yourself; use generic functions to implement whatever interface you wish, then provide for specific implementations.
- swannodette 14y agobut you have a wealth of tools to do that yourself That's the problem. With Clojure you don't have to invent interfaces and then convince other libraries to use them. All the data structures are built upon well considered language level protocols that anyone can implement preventing pointless API proliferation.
- mahmud 14y agoClojure has the benefit of hindsight; it is one of the newest programming languages and it is not constrained by a published standard, nor does it need to cater to tens of vendors or any existant code-bases (Nearly every user of Clojure is on github ;-)
- honr 14y agoI think wise people prefer programming in good languages that enjoy the benefit of hindsight. Common Lisp does not have the luxury of hindsight, and can hardly change its specification to reflect modern theoretical and practical PL results. Personally, I slightly prefer Clojure over SBCL.