Named Arguments
The cluster focuses on advocacy for named arguments or parameters in programming languages to improve function call readability, flexibility, and avoid positional order issues, referencing languages like C#, Python, JavaScript, and others.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Yes, named arguments are a nice solution. Espeically if it can be forced (only passable by name).
If your language supports named arguments, sure, but that's not always a given.
just like in javascript - oh wait, that is the shiny new trend in programming, there it can't be bad thing the lack of named params.
Named arguments are such a good idea.
This is a great reason why programming languages should support named arguments.
Pretty much any language that allows named parameters at call site.
JavaScript doesn't have named arguments, so passing a lot of stuff in arguments makes code unreadable.
Named parameters don't help in the case where you have (for example) one function returning (pos, size) and another function expecting (size, pos).
Honestly this seems more like a cautionary tale about why you should prefer named arguments.
Are there any plans to add named arguments a la C# or Python in the future?