박재성
02/14/2024, 3:20 AMephemient
02/14/2024, 3:48 AMJohan
02/14/2024, 5:17 AMval foo = bar(10)
- 10
is an argument
Parameters are placeholders defined in the function or method declaration. fun bar(x: Int)
- x
is an parameter
I see they use a mix of all the "default X"
https://kotlinlang.org/docs/functions.html#default-arguments
Not totally sure if its correct to use the term default arguments
but it's used quite wildly on the internet?
Maybe all of those names are valid depending on the point of view?Joffrey
02/14/2024, 8:57 AMDaniel Pitts
02/15/2024, 7:55 PM