Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jrgv
· 10y ago · 0 comments
I'd prefer to throw an exception in that else block:
throw new AssertionError("Should never happen");
Comments
[–]
jdmichal
10y ago
I just put a comment as an example. I typically log-and-throw.