3 ms·
You‘re correct. What feels nice about Rust is that its typing system is tightly coupled with solutions that are impossible to use incorrectly. My Mutex wraps
by selfmodruntime 4y ago
You‘re correct.
What feels nice about Rust is that its typing system is tightly coupled with solutions that are impossible to use incorrectly.
My Mutex wraps my value. There is no way to access my value without correctly locking it first. I can‘t not handle all of my enum variants when matching. To get to the value of my result, I am forced to unwrap it, thereby handling a possible error.
While arriving at a compiling solution can be annoying, it feels nice to be able to trust.