2 ms·
Well, usual pattern matching will be even shorter, so I'm talking exactly about cases when lazyness provokes programmer just return that underlying type than wr
by EugeneOZ 10y ago
Well, usual pattern matching will be even shorter, so I'm talking exactly about cases when lazyness provokes programmer just return that underlying type than write pattern matching or implement trait.
- int_19h 10y agoIt would still be true with a simple error code. It's always easier to reuse an existing abstraction (in this case, existing set of codes) than it is to define a new one.
- EugeneOZ 10y agoWhen you write function first time, you don't have set of codes yet. When you write second function, you already have underlying error in use :)