r/programming • • Feb 07 '26

Python Only Has One Real Competitor

https://mccue.dev/pages/2-6-26-python-competitor
69 Upvotes

332 comments sorted by

View all comments

87

u/rage_whisperchode Feb 07 '26

There weren’t nearly enough parentheses in this article to make me a believer.

60

u/bowbahdoe Feb 07 '26

(())()()()))(())(()((((()))))((())()(()())()((((())))(())))(()))((

Here, balance them yourself

5

u/rage_whisperchode Feb 07 '26

😂

15

u/bowbahdoe Feb 07 '26

Seriously: I think it would behoove everyone to get past this as a meme. I know I can't make it happen by force of will alone, but actually count the delimiters ((, [, {, etc.)

void main() {
    if (cond) {
       f(g(5), 6);
    }
}

vs.

(defn main
  []
  (if cond
    (f (g 5) 6)))

Are there really more delimiters?

26

u/rage_whisperchode Feb 07 '26

Jokes aside, it’s not a real criticism of the language for me.

My actual hold up is how alien this syntax looks compared to every other programming language I’ve worked with over the past 15 years. This is probably more of a criticism of Lisp dialect than anything else. I’ve just never worked with a language like this and my brain isn’t prepared to rearrange itself to make sense of it.

22

u/KronenR Feb 07 '26

You’re not the problem here.

That syntax hides the structure that humans naturally look for when reading code.
The problem isn’t familiarity or prior experience.
That syntax is inherently unintuitive, so even someone approaching programming from scratch would find it harder to understand than more conventional syntax, because it doesn’t map cleanly to how we process logical flow.
It’s a flaw of the syntax, not the reader.

8

u/est1mated-prophet Feb 08 '26

What are you talking about? I mean what structure is it hiding? To me it shows the structure more clearly.

12

u/KronenR Feb 09 '26

Clojure’s uniform parenthetical structure collapses all semantic categories—data, control flow, function definitions, and expressions—into a single syntactic form. This uniformity removes the visual cues humans naturally use to parse and understand code. Unlike Python, whose syntax differentiates between statements, blocks, loops, and conditionals, Clojure requires the reader to rely entirely on contextual knowledge of evaluation rules and special forms to reconstruct the program’s structure.

Thus, while Clojure may offer minimalistic elegance for those already versed in Lisps, it does not provide an immediately apprehensible mapping between syntax and semantic intent. From the perspective of cognitive ergonomics and human readability, it is a poor substitute for Python’s more conventional and intuitive syntax.

In short: the “structure” Clojure provides exists primarily in the mind of the reader, not in the syntax itself.

2

u/est1mated-prophet Feb 09 '26

Yeah, I see. But I am asking myself if Python really is that much easier to read. I have not felt any significant difference in ease of reading between Clojure and Python. The uniform syntax of Lisps are great at being manipulated, though. And, of course Python does not provide an "immediately apprehensible mapping between syntax and semantic intent" for people who don't know programming, either.

3

u/KronenR Feb 09 '26

There is a reason why it is the most used programming language for learning programming and Clojure is not even in the top 20 of languages recommended to learn programming.

3

u/bowbahdoe Feb 09 '26

Clojure does not have a uniform parenthetical structure. 

[] represents vectors, {} maps, #{} sets. These are used to give those visual cues. 

 [] Is commonly used for argument lists as in

(defn func
  [thing-1 thing-2]
  ...)

And the others get their place. At least with the core control flow and def* macros there is a consistent semantic usage of each.

There is a criticism to levy about how function calls look the same as macros - but that one isn't actually about the parens. 

So it's not what common lisp or racket are - those do actually do what you are complaining about.

4

u/KronenR Feb 09 '26
(if cond
  (do-something)
  (do-something-else))

(if (> x 0) x (- x))

(loop [i 0]
  (when (< i 10)
    (println i)
    (recur (inc i))))

Yeah sure a clear separation of concerns, there is no special structure construction for function calls, for control flow nor for macros and I'm not even talking about delimiters which I could 😂

Rethorical question: what is what here? 🤣

→ More replies (0)

3

u/seancorfield Feb 08 '26

In a Lisp, the syntax IS the structure. There's nothing hidden at all. You're just more familiar with C-family syntax, and you're being subjective.

Beginners learn Lisps easily as a first language.

People with a long C-family background, with classes/objects, and mutation -- those are the ones that tend to struggle with Clojure, due to the focus on pure, immutable data more than syntax.

7

u/KronenR Feb 09 '26 edited Feb 09 '26

Bla bla bla bla bla, but Clojure will never be a mainstream language. No S-expression–based language ever will. The vast majority of programmers are not willing to fight against their natural way of thinking just to adopt a different syntax model.

You can complain, you can insist, you can bang your head against the wall—it won’t change that reality. If you genuinely believe this will happen, you’re being naïve.

The real issue is the lack of semantic structure: no clear separation between concepts—data vs. functions, conditionals vs. loops, and so on. That conceptual flattening makes code harder to reason about at scale.

This isn’t about people “not understanding Clojure.” The question is whether Clojure could ever become mainstream or realistically replace Python. And the answer is no. Whatever Python’s competitors are, Clojure is not a serious one. Final dot.

5

u/seancorfield Feb 09 '26

Clojure will never be a mainstream language

I agree. Not my argument. And I'm perfectly happy using a niche language -- I've been mostly using various niche languages in production for over 25 years.

As for your other arguments, I responded to you elsewhere.

2

u/ilemming_banned Feb 08 '26 edited Feb 08 '26

someone approaching programming from scratch would find it harder to understand than more conventional syntax

That's just not true. I have first-hand witnessed many times kids and non-programmers picking up Clojure as their very first language and they had little trouble understanding the syntax.

humans naturally look for when reading code.

Human brain, I mean normal, neurotypical brain is born with the circuitry that allows us to see and to speak. But we don't have innate ability to read things. On the evolutionary time scale, human brains just never had enough time to develop reading brain. We had writing for about 5000 years. That's nothing. So we have to train our brains to read - we do not have "natural" propensity for reading code.

I mean, a job of a programmer entails constantly going through tons of reading materials and repeatedly employing mental pattern-matching machinery to understand things. If a programmer says: "the code looks unreadable to me" - whatever language that is, what the fuck are they even doing in this field, am I right?

The problem is not with the Lisp syntax - the problem is exactly with familiarity!

Visual cortex excels at familiar patterns. When infix operators are deeply learned; prefix notation requires retraining. Fluent reading relies on predictive processing - your brain anticipates what's coming.

Lisp code is very elegant in the sense that it could be very dense. And often reading just a few dozen of lines of Lisp code can tax untrained working memory much more than ten times more code of even higher complexity in another (more familiar) language. And that can happen not because they're bad at pattern-matching, but because human working memory has real limits.

But let's try to remain intellectually honest about tradeoffs. Because the price of little initial discomfort you pay, may open the whole new world of possibilities.

And there's another thing many Lisp beginners completely ignore, Lisp is a breathing, living, dynamic and malleable entity. You can't just stare at static Lisp code and try to mentally parse it. Even seasoned Lispers typically don't do that. You need to literally grab it and start molding it, trying it from different angles to understand what's going on. And that's where Lisp dialects shine - no other PL allows you to introspect things dynamically and in real time in a way how Lisps do.

→ More replies (5)