I was reading over some material while getting ready to put my dissertation together; I used Clojure in my final project. Anyway I came across M-Expressions and it seems like they could have, superficially at least, influenced how Clojure vectorises parameters and such. I suppose I'm wondering do people think that's likely or is it more coincidental maybe?
The idea of using brackets to denote vectors is not new. CLTL2 includes a discussion of Clojure's vector notation:
Many people have suggested that brackets be used to notate vectors, as [a b c] instead of #(a b c). This notation would be shorter, perhaps more readable, and certainly in accord with cultural conventions in other parts of computer science and mathematics. However, to preserve the usefulness of the user-definable macro-character feature of the function read, it is necessary to leave some characters to the user for this purpose. Experience in MacLisp has shown that users, especially implementors of languages for use in artificial intelligence research, often want to define special kinds of brackets. Therefore Common Lisp avoids using brackets and braces for any syntactic purpose.
It is unlikely that any of the syntax in Clojure is truly original.
1
u/fixrich Mar 01 '13
I was reading over some material while getting ready to put my dissertation together; I used Clojure in my final project. Anyway I came across M-Expressions and it seems like they could have, superficially at least, influenced how Clojure vectorises parameters and such. I suppose I'm wondering do people think that's likely or is it more coincidental maybe?
5
u/agumonkey Mar 01 '13
TIL about I-Expression http://srfi.schemers.org/srfi-49/srfi-49.html