Re:Why did we choose Rust to develop TiKV?
by topspin on Wednesday September 27, 2017 @12:16PM
(#15349272)
Right, but what you did not get was undefined behavior. That is the real difference, not that Rust "discourages" unwrap(). unwrap() panics, while unfortunate, are well defined.
[ Parent
| on HN ]
Re:Why did we choose Rust to develop TiKV?
by jhasse on Wednesday September 27, 2017 @12:39PM
(#15349562)
In reality, this doesn't make a difference though ;)
Re:Why did we choose Rust to develop TiKV?
by topspin on Tuesday October 03, 2017 @11:35PM
(#15398105)
Halting in a defined manner vs. continuing computation while undefined conditions prevail are fundamentally different outcomes. This is indeed a difference.
Re:Why did we choose Rust to develop TiKV?
by jhasse on Wednesday October 04, 2017 @02:42AM
(#15398691)
Computation doesn't continue, it segfaults.
Re:Why did we choose Rust to develop TiKV?
by topspin on Wednesday October 04, 2017 @12:30PM
(#15401689)
You simply cannot know that and your assertion reveals a lack of understanding. Computation may continue indefinitely, unintentionally distributing your private keys or doing some other heinous thing forever, without any sort of MMU trap. Undefined means undefined, not 'segfault.'