Skip to content

Comment on Comparing Go and Java, Part 2 – Performanceparent

Comments

You can't really use panics as exceptions. If you do your code will be strange and hard to work with. This strangeness is fine, because they aren't meant to be used like that.

A good rule of thumb is to use panics when it's a programmer error indicating a bug.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.