If you need so many rules to make the code bearable then maybe Lisp syntax isn't the best choice?
You can't use the fact that one person has written a style guide for a language as evidence that there are problems with that language's syntax. Is there a popular programming language out there for which nobody has ever written a style guide?
I get why people like Lisp-like languages, it really is elegantly designed, but god damn is it ugly and tiring to read.
To you. To me, coming from a non-technical background, the fact that Lisps were the only languages that were easily readable with hardly any training was what made me start using them in the first place. I'm writing code in a variety of non-Lisp languages these days, and a couple of them are even quite enjoyable, but the syntax is always a major pain point. It's harder to learn, harder to read, harder to edit, and most importantly, harder to remember. Whenever I go back to programming in Haskell, Swift, Elm or C# after some time off, I get the syntax wrong and have to look everything up. I simply have no great skills or interest in learning or memorizing syntax. To me it's just a pointless and annoying obstacle to learning a language.
At least I grant you that Clojure is by far my least favorite Lisp syntax wise (although it has other advantages, and I vastly prefer the Clojure syntax to any non Lisp language). Common Lisp and Scheme both have a much more pleasant syntax.
It's simply a matter of there being more syntax in Clojure: Where Scheme and Common Lisp code consists only of lists, Clojure is lists, vectors and maps.
Ah. Yeah, I liked having maps, but I did find the List/Vector thing confusing. It seemed like there were good reasons for having the dichotomy, but it led to a lot of boilerplate and confusion in my code.
In Clojure's flavor of code-as-data, lists are preferred over vectors in cases where the first element should be treated differently from the rest. In other cases, vectors are preferred. For instance, in a function invocation, the first element of the sequence is handled differently from the rest (the first element is the function, the rest of the sequence is the arguments to the function, and therefore, function invocation is written as a list. In a sequence of let bindings, on the other hand, there is no distinction between the first element and the rest, hence a vector is used.
This makes some sense, and is good enough to help me easily remember when to use a list and when to use a vector when writing code, but it seems needlessly complex to me.
Regarding maps: I guess you talk about using map syntax for destructuring? I agree, that's really neat.
I think the same. I've tried Clojure when trying out the Overtone-framework (automatic music making) and even after learing to read/write the language I still find it very tiring to read and write the syntax.
-9
u/Beckneard May 25 '17
If you need so many rules to make the code bearable then maybe Lisp syntax isn't the best choice?
I get why people like Lisp-like languages, it really is elegantly designed, but god damn is it ugly and tiring to read.