News for hackers. Stuff that matters.
Re:A Rust Shaped Hole by Ygg2 on Thursday July 17, 2025 @04:54AM (#44591185)
> Also the borrow checker is the Rust version of Haskell burrito blogs with monads, it is hard to get how to design with it in mind,

Eh. Haskell monads are a math-centric way of performing operations on wrapped types (stuff inside a monad). Rust borrow checker is way more pragmatic-centric, i.e. how can we prevent certain behaviors.

The difference being you don't see Monads being replaced by Tree-Monads, without impacting the code.

> and when one gets it, it isn't that easy to explain to others still trying to figure it out.

So is going from 0-based to X-based arrays (where X is an integer); Or learning a new keyboard layout. Just because it's hard (unfamiliar) doesn't mean it's impossible.

Re:A Rust Shaped Hole by pjmlp on Thursday July 17, 2025 @04:57AM (#44591209)
In a way you're right, hence my last sentence.
Re:A Rust Shaped Hole by Ygg2 on Friday July 18, 2025 @06:35AM (#44603138)
I don't quite get what you mean by:

> Naturally those of us with experience in compilers, type systems theory and such, see it differently, we are at another level of understanding.

I mean yeah, you might have a new perspective, but so can it be a blinder to how people learn language. Curse of knowledge, and all that.