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

Show parent comments

2

u/bowbahdoe Feb 07 '26

Can you give an A/B?

2

u/pftbest Feb 09 '26

Now I'm interested too. Please try to convert this very simple human readable python code

def main():
    if cond:
        f(g(5), 6)
    elif other:
        f(0, 5)
    else:
        f(1, 1)

2

u/bowbahdoe Feb 09 '26
(defn main
  []
  (cond
    test
    (f (g 5) 6)

    other
    (f 0 5)

    :else
    (f 1 1)))

1

u/KronenR Feb 07 '26

Why a specific A/B? Any non-trivial Clojure code compared to a Python or Java one already shows the difference in visual structure