Comment

Comment by creata

> That works, but it's not particularly intuitive.

It looks fine? The code fails because it dereferences the MutexGuard twice, so you instead dereference it once. It's hard to imagine that this contributes much to "Rust's difficult learning curve".

Rather, introducing even more potential implicitness on every `.` seems like it would make the language harder to learn.

Is there an example that really benefits from these features?

parent creata 10 days ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton