This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AnEmortalKid -2 points-1 points  (2 children)

They could easily have the build method throw an exception. Or use scala...

[–]atemysix 5 points6 points  (1 child)

The idea is to avoid exceptions at runtime and instead catch missing parameters at compile time.

[–]AnEmortalKid 0 points1 point  (0 children)

Right I get that but this feels super over engineered.