3 ms·
> actually that would be a bad idea. considering you want to handle multiple options at once. The proposal is to rename the method[0], not to remove it entirel
by masklinn 11y ago
> actually that would be a bad idea. considering you want to handle multiple options at once.
The proposal is to rename the method[0], not to remove it entirely. So the code you're showing would still be possible, only clearer that it's not innocuous (the body relies very very strongly on the conditional)
[0] not sure why adding an override to #orElseThrow to throw a default exception is not on the table