|
|
|
|
|
by city41
1739 days ago
|
|
The downside to this approach is it often doesn't survive refactors. People change the method signature, update call sites, and often ignore the comments. Named parameters avoid this downside, it's a real shame named parameters are not more common in languages. |
|
Totally agree this is better to be in the language proper so we don't need this extra tooling.
[0]: https://errorprone.info
[1]: https://errorprone.info/bugpattern/ParameterName