wartremover
wartremover copied to clipboard
Better explanation of why default arguments should be avoided
The explanation for why default arguments are a wart is pretty short and vague. Of course, users are welcome to disable that wart if they don't agree, but it would be nice to make a somewhat more compelling case for why default arguments should be avoided.
I think a simple example of a situation where default arguments causes an undesirable situation would make a big difference.
See https://github.com/wartremover/wartremover/issues/116 for a more in-depth discussion of this wart.
@ClaireNeveu Very interesting discussion! Someone (perhaps me) should distill that conversation and add that to the docs which would fix this issue 😄