Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
cglodt
· 5y ago · 0 comments
Throwing from a constructor is a fundamental way to make it impossible to construct invalid instances of a class. It's great, especially for immutable classes. Throwing from constructor + immutability = no invalid states ever.
Comments
No comments yet.
Better HN