News for hackers. Stuff that matters.
Re:Moving from Ruby to Rust by icebraining on Thursday February 14, 2019 @09:40PM (#19168045)
Why would you need nulls to do metaprogramming?
Re:Moving from Ruby to Rust by james_s_tayler on Friday February 15, 2019 @12:51AM (#19168755)
Because it usually involves doing a lot of things that are unsafe. Take reflection for instance. There is no way to guarantee at compile time that a string whose value is only known at run-time is actually a real method in the code that can be invoked.

To get the level of safety they have gone for they have to disallow anything that could potentially blow up.

Re:Moving from Ruby to Rust by icebraining on Friday February 15, 2019 @06:24AM (#19170009)
Why would that require nulls? They could use an Option type or just throw an exception.