32 ms·
> which should inherit from the built-in Exception class I hate that. should inherit from StandardError IMNSHO. It's a quibble though and a pointless one until
by njharman 17y ago
> which should inherit from the built-in Exception class
I hate that. should inherit from StandardError IMNSHO. It's a quibble though and a pointless one until the standard library follows that. (which it never will...)
> Use the "implicit" false if at all possible.
Is so wrong, for the listed caveat reasons and more. It's the opposite of readability to me. Similar issues with the use default iterators. If my loop is expecting a dictionary and to iterate over it's keys I really want the "foo has no method keys" error rather than looping over a list and creating hard to discover/understand bug.