Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I was mostly talking about diverging in the way Fennel had.

> Historically core Lisp has left other grouping character or syntax to sublanguages or new data types.

Sure, but Clojure uses other grouping characters for the main dialect itself, and Fennel uses very similar deviations from the "Lisp baseline", hence my wondering about the inspiration.



Square brackets have been used in some Scheme for a long time. There are also Scheme books which use them in code.


Used them to define the formal parameters of a function? Because that's what I'm referring to. Fennel uses

    (fn [param*] expr*)
for function definition, which is also how it is spelled in Clojure.


One can use them everywhere instead of parentheses.


The difference for Clojure would largely be that other delimiters are sugar for the various data types, so you make maps with {}, vectors with [], sets with #{}, etc.


it then mixes syntax and data type issues. For example arguments are then vectors, probably to have [] as syntax. Though in Lisp one would keep argument lists: there is no technical need to make them vectors.


I wasn't making a value judgement in the statement, just nothing that in Clojure the other delimiters aren't just alternative ways to enclose forms.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: