Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
joseluis
· 4y ago · 0 comments
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...
Comments
[–]
Ygg2
4y ago
Problem with named parameters is that they make renaming function params a breaking change.
[–]
metaltyphoon
4y ago
Unless the IDE doesn’t support this refactoring? It’s ridiculously easy in C# and VS or VSC.
[–]
setr
4y ago
A (public) library doesn't have access to all codebases depending on it.
[–]
Ygg2
4y ago
Even there changing the method param will invalidate semver specification.
[–]
maxbond
4y ago
Fair enough.