Both grep and greplace! use "heisenparameters" #5
Labels
enhancement
Something useful is missing from the library.
help wanted
Community assistance with this issue is requested.
As articulated by Stuart Sierra, the use of function parameters that may either be collections or singletons is an anti-pattern, yet that's exactly how
grep
andgreplace!
are implemented, for exactly the reason the article decries (convenience).Although the fix is technically trivial, it does break backwards compatibility, so this will require some research to try to identify downstream users of the library, and then outreach to those projects' maintainers to ask them whether this fix is worth the pain it will inflict on them.
The text was updated successfully, but these errors were encountered: