|
|
|
|
|
by klibertp
4790 days ago
|
|
I'm not sure I like this syntax. It's unfamiliar both to lispers and "mainstreamers". The former will be irritated with { and commas, the latter will try to insert : everywhere. I read an interview with Rich Hickey where he said that adding these three syntax constructs reduced cognitive burden on programmers. He meant () for lists, [] for vectors and {} for hashes. I should implement it in Racket and just see how it feels. |
|
Personally I think that differentiating between lists and maps is important and the way Clojure does it (as well as JSON) is quite easy to write and read. FWIW example given by bitcracker is broken because there's no way to understand what does the following mean:
The outermost element is it a list or a map?[1] http://dev.clojure.org/jira/browse/CLJ-899