Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a thing people experience at the beginning, but once you get over the hump, for many, it is not descriptive of what it's like.


> This is a thing people experience at the beginning (...)

This is not an onboarding problem. This is a trait of the programming language, which only gets worse as a project grows.

It's high time for the Rust community to start to get honest with themselves and stop pretending problems don't exist. It's already bad enough with the clusterfuck which is async Rust, and you're doing no one any favor to pretend that the borrow checker doesn't add a heavy cognitive load.


> pretend that the borrow checker doesn't add a heavy cognitive load

The borrow checker actively reduces cognitive load once you learn to adopt program designs that mesh well with its requirements. And those happen to be really good program designs across a wide range of axes.


I am sorry that you seem to think you know how I feel better than I do?

The borrow checker means I have to pay less attention to memory management, not more. That’s why it exists. So I don’t have to worry about it. It catches my mistakes, I fix the code, I move on.


I can't speak for others, but it absolutely has made life easier, on both small and large scales.

Actually being forced to think about how long allocations and resources need to live turned random "takes days to figure out" bugs into an instant response of "oh, that was stupid of me to try doing that huh? Guess I'll try something else"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: