2 ms·
That looks right. If/else is overloaded as doing the normal thing with bools by default, and if you try to capture something exceptional with `else |y|` then th
by hansvm 4y ago
That looks right. If/else is overloaded as doing the normal thing with bools by default, and if you try to capture something exceptional with `else |y|` then the type of `x` is inferred to be something capable of such a capture -- optionals or error unions.
- frou_dh 4y agoIn a statically typed language, this specifically comes off to me as an artificial way to keep the total number of keywords down.