2 ms·
> This cognitive hurdle is real and it's why Lisp isn't more popular. Nobody has the answer why language or language family X isn't more popular. Thousands an
by kazinator 10y ago
> This cognitive hurdle is real and it's why Lisp isn't more popular.
Nobody has the answer why language or language family X isn't more popular.
Thousands and thousands of languages have been invented since the dawn of computing. Only a handful are popular at any one time.
Simply by probability and statistics alone, a language is unlikely to be popular.
Some languages with awful, difficult syntax have enjoyed popularity.
Perl became popular because of cryptic syntax. Cryptic syntax is what is populist, not clean syntax.
Programming wannabes outnumber actual developers N:1 for rather large N. Programming wannabes feel smart when they remember and correctly use cryptic syntax. "Hey, look, I didn't use any parentheses in this because I memorized all 17 precedence levels!" "Wow, this linenoise-like sausage of symbols totally works! That is AWESOME!" "Bubble sort in 13 characters of code; I'm floored ...".
C is popular because of the reverence for the tricks that it allows, like Duff's device:
https://en.wikipedia.org/wiki/Duff's_device https://en.wikipedia.org/wiki/Duff's_device
Lisp threatens these types of people whose competence is rooted in arcane syntax. It does that precisely because it's ultra-readable.
Even if you've never programmed Lisp, you can probably guess what this does with great accuracy:
(loop for x from 1 to 10
collecting x into list
maximizing x into max
finally (return (list max x)))
You certainly won't stumble over any issues of cryptic syntax, or precedence or whatever. You might face an impediment if you don't speak English, due to that language being used to name symbols like "loop" and "collecting".
People who claim that Lisp is not readable are disingenuous (promoting something else or jealously protecting their self-image of competence when the bulk of their CS and programming knowledge rests in the mastery of a handful of cryptic syntaxes), crazy/trolling or else cognitively different (such as dyslexics genuinely struggling with the syntax).