5 ms·
I would make the abstract class "Maybe" a sealed class with None and Some being the only permitted implementation So that clients can use pattern matching (enha
by stemlaur 2y ago
I would make the abstract class "Maybe" a sealed class with None and Some being the only permitted implementation
So that clients can use pattern matching (enhanced switch)
- Hackbraten 2y agoVery good point.