←back to thread

460 points birdculture | 1 comments | | HN request time: 0.233s | source
Show context
cadamsdotcom ◴[] No.43979523[source]
Rust is wonderful but humbling!

It has a built in coach: the borrow checker!

Borrow checker wouldn't get off my damn case - errors after errors - so I gave in. I allowed it to teach me - compile error by compile error - the proper way to do a threadsafe shared-memory ringbuffer. I was convinced I knew. I didn't. C and C++ lack ownership semantics so their compilers can't coach you.

Everyone should learn Rust. You never know what you'll discover about yourself.

replies(5): >>43979578 #>>43979674 #>>43980750 #>>43982334 #>>43996710 #
1. sph ◴[] No.43996710[source]
> Borrow checker wouldn't get off my damn case - errors after errors - so I gave in. I allowed it to teach me

Bondage driven development.