4 ms·
I once saw python code if 'i_know_what_im_doing' not in kwargs: raise ...
by kilotaras 10y ago
I once saw python code
if 'i_know_what_im_doing' not in kwargs:
raise ...
- efaref 10y agothat_function(i_know_what_im_doing=False)
- pdpi 10y agoIn a twisted kind of way, I'd call that a feature. If you're aware you don't know what you're doing, but still want to do it, that's kind of ok. Problem is when you're not even aware you're about to jump into some pretty hot water.
- joewalnes 10y agoJUnit ships with this method: void _dont_implement_Matcher___instead_extend_BaseMatcher_() I know this because I wrote it. If you're interested in why: https://www.reddit.com/r/programming/comments/nlt5x/i_believe_this_is_exactly_how_not_to_design_a/c3awk2i/ https://www.reddit.com/r/programming/comments/nlt5x/i_believ...