Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
stemlaur
· 1y ago · 0 comments
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)
Comments
[–]
Hackbraten
1y ago
Very good point.