3 ms·
I think Erlangs approach is valuable: fail early and loud. There is no harm done by b), there will never be a costly mistake. If the programmer has to deal wit
by j-pb 6y ago
I think Erlangs approach is valuable: fail early and loud.
There is no harm done by b), there will never be a costly mistake. If the programmer has to deal with it anyways, at least make them very aware of the fact, they can then still decide to perform c).
- framecowbird 6y agoDefinitely this. When software silently thinks it knows what I wanted and silently does the wrong thing, sometimes you find out a long time later, and it ends up being very expensive, particularly when it’s to do with data analysis. I would always prefer an error. I think this is a huge weakness of Pandas. I have to put “errors=raise” all over the place, although not many functions have that parameter.