4 ms·
Completely agree, and it's surprising to see this in Nethack because game programmers almost unanimously shun exceptions. In games, you have a small number of
by et1337 10y ago
Completely agree, and it's surprising to see this in Nethack because game programmers almost unanimously shun exceptions.
In games, you have a small number of functions that can tolerate failure, probably relating to IO. Everything else instantly explodes.
- AbacusAvenger 10y agoBear in mind this is Nethack4 which is a fork of Nethack.
- Narishma 10y agoGames that don't use exceptions tend to do so because of performance concerns. Nethack is a turn-based game, so performance isn't as relevant here.