Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Named Arguments

< >
Example from 1 languages: Python
print("Hello", end="!\n") # details: any parameter that hasn't been explicitly marked as positional-only # can be provided as a named argument
Example from 1 languages: Ruby
String.new("abc", encoding: "utf-8", capacity: 16)
Example from 1 languages: Scala
"abcdef".slice(from=2, until=4)
Example from 1 languages: Kotlin
"abcdef".subSequence(startIndex=2, endIndex=4)
*

Languages with Named Arguments include Python, Ruby, Scala, Kotlin

*

Languages without Named Arguments include JavaScript, C, Java, C++, TypeScript, Bash, Rust, Haskell

*

View all concepts with or missing a hasNamedArguments measurement

*

Read more about Named Arguments on the web: 1.

- Build the next great programming language Add Add Prompt Issues About Search Keywords Livestreams Labs Resources Acknowledgements