Re:C++ Is an Absolute Blast
by Maxatar on Monday December 23, 2024 @10:10PM
(#42499437)
One is undefined behavior which may manifest as entirely unpredictable side-effects. The other has semantics that are well specified and predictable. Also while what you wrote is technically valid, it's not really idiomatic to write it the way you did in Rust, you usually write it as:
At which point value is the "dereferenced" value. Or you can take it by reference if you don't want to consume the value.
[ Parent
| on HN ]