3 ms·
In case, what do you say about returning a class instance from a function in Java? Joking aside, the feature gives you both a value type and documents the inten
by snowAbstraction 8y ago
In case, what do you say about returning a class instance from a function in Java? Joking aside, the feature gives you both a value type and documents the intent of function intentionally possibly not returning a value.
- dasloop 8y agoThis will be C++ std::expected: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0323r3.pdf http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p032... Returns a value (as in std::optional) than can be null. If so you will get an error explaining what happened.