graydon/rust — comment on commit da519c8587c46ec519fada1aee7cc32ed2c1cd6a
File:  line 0
By marijnh:

I very much disagree. If a key not being present is a bug, then just relying on `map::get` failing is much preferable to adding some clunky inline error path. If `map::get` fails, you can look at the backtrace and know exactly what's going on. Having such a `fail` might save you ten seconds in figuring out where the problem comes from, but if the cost is 9 extra lines of code to maintain and to compile, that seems a bit steep for such a trivial thing.