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.

📉 Falling 0.4x Programming Languages
3,718
Comments
20
Years Active
5
Top Authors
#2095
Topic ID

Activity Over Time

2007
1
2008
13
2009
34
2010
62
2011
109
2012
167
2013
164
2014
187
2015
193
2016
164
2017
228
2018
122
2019
304
2020
406
2021
349
2022
347
2023
328
2024
250
2025
278
2026
12

Keywords

CPAN PHP e.g TypeScript EC6 ROS Object.new JavaScript github.com E.g named arguments parameters function parameter string argument syntax hash languages

Sample Comments

mortoray Jun 15, 2015 View on HN

Yes, named arguments are a nice solution. Espeically if it can be forced (only passable by name).

vitus Mar 12, 2025 View on HN

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.

paulddraper Oct 29, 2023 View on HN

Named arguments are such a good idea.

nerdponx Jan 13, 2022 View on HN

This is a great reason why programming languages should support named arguments.

int_19h Aug 11, 2020 View on HN

Pretty much any language that allows named parameters at call site.

xigoi Jun 26, 2022 View on HN

JavaScript doesn't have named arguments, so passing a lot of stuff in arguments makes code unreadable.

TheLoneWolfling Apr 21, 2014 View on HN

Named parameters don't help in the case where you have (for example) one function returning (pos, size) and another function expecting (size, pos).

javajosh Jul 14, 2022 View on HN

Honestly this seems more like a cautionary tale about why you should prefer named arguments.

EvenThisAcronym Aug 29, 2014 View on HN

Are there any plans to add named arguments a la C# or Python in the future?