Hacker News new | past | comments | ask | show | jobs | submit
I think clojurists overestimate how advanced their language is. Or maybe it's just my outsider's perspective? Famously, Clojurists/Lispers think that theirs is the most advanced language and everyone who fails to see that just doesn't understand expressive power.

In any case: Typescript has dynamic types and static types, it has true union types, it has hot reload (what you might call REPL), it has the widest package ecosystem and so much more. It works out of the box with the most popular IDE and you don't need to learn emacs.

I rarely hit the power ceiling of Typescript, so I never put in the work to learn Clojure.

Typescript doesn't have a real repl. You cannot redefine just one variable in a running program and have the rest of the compilation untouched, yet aware of the redefinition.

I get that "hot reload" can feel similar, but it's not the same and is more limited for debugging, experimentation, extremely fast (sub-ms) iteration loops, etc.

Another thing you can't do is running/debugging tests without triggering more compilation. In a real repl language you drive things in-process, not from the outside with compilers and test runners.

Typescript is lovely btw, just have a go at other paradigms if you feel like it.

confluent persistence, on data. which changes how you think about concurrency.

it allows you to "branch, work on a worktree, and merge" but unlike git worktrees you don't need to copy a complete clone of the data, you instead, like in the git object store, share most of it and only need memory for what you touch in your branch.

and your data only changes when _you_ decide to rebase, and merging partial work results is a _deliberate_ step, not something happening under your feet.

How are merge conflicts handled in Clojure, in that picture?
Latest one wins. But you can keep a reference to the old, unchanged structure around, too. This is why immutability is important.

``` (let [a {:greeting "hello" :name "world"} b (merge a {:greeting "hi"})] [(:greeting a) (:greeting b)]) ; => ["hello" "hi"] ```

{"deleted":true,"id":50586854,"parent":50586574,"time":1795245630,"type":"comment"}
I don't think I've really seen the argument that clojure is "advanced" much at all.
Fuck being advanced, I love how stupid simple it is.
Javascript is the peak of programming language design, unironically.