Great!
Great!
Posted May 16, 2015 16:18 UTC (Sat) by ncm (guest, #165)In reply to: Great! by ms_43
Parent article: Rust 1.0 released
On rust, which doesn't have exception handling, programs idiomatically use standard library components to effectively emulate exception handling. These library components are simple and well-tested. It does depend on the whole system returning Result and Option objects for operations that can fail. I don't know how disruptive it would be to change a low-level function that once could not fail to one that returns a Result.
It is worth noting that the 1.0 release asserts a stable core language, but the library is not declared stable.
Posted May 16, 2015 21:57 UTC (Sat)
by roc (subscriber, #30627)
[Link] (2 responses)
Also, you'd better be sure your destructors don't trigger allocation directly or indirectly.
Neither of those issues are tested "on every run of the program".
Posted May 19, 2015 13:34 UTC (Tue)
by dgm (subscriber, #49227)
[Link] (1 responses)
Posted May 21, 2015 5:08 UTC (Thu)
by roc (subscriber, #30627)
[Link]
Ultimately all bugs are "problems with the coder that wrote it", but coders aren't perfect and their time isn't free, so making coding easier matters.
Great!
Great!
Great!