4 ms·
Kotlin does this https://kotlinlang.org/docs/functions.html#named-arguments https://kotlinlang.org/docs/functions.html#named-arguments
by yen223 2y ago
Kotlin does this
https://kotlinlang.org/docs/functions.html#named-arguments https://kotlinlang.org/docs/functions.html#named-arguments
- kazinator 2y agoNope! > "When you use named arguments in a function call, you can freely change the order that they are listed in." That violates a key requirement in my specification, which means that I regard it as broken. Positional parameters should take arguments only in their designated argument position. Only non-positional parameters (keyword parameters) should be allowed to be specified in any order.
- JamesonNetworks 2y agoIs there an example you have in mind as to why the params, if passed via keyword, would need to stay in their position? It sounds like external calls made to the internal api without the headers being present? Trying to understand why the position/order would matter to you once arguments are named?