←back to thread

517 points bkolobara | 2 comments | | HN request time: 0.594s | source
1. torginus ◴[] No.45045497[source]
The Rust example that you point out might not trigger compile time warnings in other languages, but most OS mutexes (certainly the ones in Windows and Linux) will complain if you release them on a different thread than you acquired them.
replies(1): >>45046085 #
2. IshKebab ◴[] No.45046085[source]
You've misunderstood somehow. The point is that Rust detects the mistake at compile time so you don't get to those runtime errors (which might be very rare or context-dependent).