4 ms·
Why would you need nulls to do metaprogramming?
by icebraining 8y ago
Why would you need nulls to do metaprogramming?
- james_s_tayler 8y agoBecause 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.
- icebraining 8y agoWhy would that require nulls? They could use an Option type or just throw an exception.