Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

Default Parameters Pattern

< >
Example from 1 languages: undefined
function multiply(a, b = 1) { return a * b; }
Example from 1 languages: undefined
public void ExampleMethod(string optionalstr = "default string") {}
Example from 1 languages: undefined
def multiply(a, b \\ 1) do a * b end
Example from 1 languages: undefined
fn void test(int x = 10) { ... }
Example from 1 languages: undefined
function Find (|string| pattern, |int| pos=0, |int|)
*

Languages with Default Parameters Pattern include JavaScript, C#, Elixir, C3, Speedie

*

View all concepts with or missing a hasDefaultParameters measurement

*

Read more about Default Parameters Pattern on the web: 1.

View source

- Build the next great programming language About Acknowledgements Extensions Day 631 Donate feedback@pldb.io