|
|
|
|
|
by flohofwoe
410 days ago
|
|
IMHO the ugly thing about Result and Option (and a couple of other Rust features) is that they are stdlib types, basic functionality like this should be language syntax (this is also my main critique of 'modern C++'). And those 'special' stdlib types wouldn't be half as useful without supporting language syntax, so why not go the full way and just implement everything in the language? |
|
You might add syntactic sugar on top, but you don't want these kinds of things in your fundamental language definition.