Hacker News new | ask | show | jobs
by joseluis 1360 days ago
Having both approaches available would be better IMHO. Builder pattern is very nice but I frequently miss having named arguments too. Even if macros can partially fullfill that need, it's not the same and introduces more quirks and complexity...
2 comments

Problem with named parameters is that they make renaming function params a breaking change.
Unless the IDE doesn’t support this refactoring? It’s ridiculously easy in C# and VS or VSC.
A (public) library doesn't have access to all codebases depending on it.
Even there changing the method param will invalidate semver specification.
Fair enough.