Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
67% Positive
Analyzed from 390 words in the discussion.
Trending Topics
#immutable#scala#clojure#memory#vectors#data#language#don#structural#sharing
Discussion Sentiment
Analyzed from 390 words in the discussion.
Trending Topics
Discussion (10 Comments)Read Original on HackerNews
Scala got introduced in 2004, with the first Programming in Scala book, in 2008.
HN had plenty of PureScript and Elm.
FP finally was going to get their spotlight, and then mainstream languages got enough FP features to keep being the go to tooling.
I still don’t understand why they’re referred to as persistent vectors rather than immutable vectors, but I digress.
I believe that immutable just means, well, immutable, but persistent means that updates are achieved via structural sharing, so they’re efficient.
if you think immutable updates are O(n) in 2026, you're so far behind the curve it's laughable
it's crazy how many ppl i interview just stop thinking and insist you can't do better than O(n)
You wanted 2+1 to yield 3, but instead you get a runtime exception telling you that 2 can't be changed.
haskell too had them (IntMap honestly works fine in that use case)