Top "Optional-parameters" questions

An optional parameter is one that a caller can include in a call to a function or method, but doesn't have to.

Java optional parameters

How do I use optional parameters in Java? What specification supports optional parameters?

java optional-parameters
How can you use optional parameters in C#?

Note: This question was asked at a time when C# did not yet support optional parameters (i.e. before C# 4). …

c# optional-parameters
How can I use optional parameters in a T-SQL stored procedure?

I am creating a stored procedure to do a search through a table. I have many different search fields, all …

tsql optional-parameters
SQL Server stored procedure parameters

I am developing a framework, where in I am a calling stored procedure with dynamically created parameters. I am building …

sql sql-server-2008 stored-procedures optional-parameters
Normal arguments vs. keyword arguments

How are "keyword arguments" different from regular arguments? Can't all arguments be passed as name=value instead of using positional …

python arguments keyword optional-parameters named-parameters
optional parameters in SQL Server stored proc?

I'm writing some stored procs in SQL Server 2008, and wondered if the concept of optional input parameters is possible here? …

sql-server-2008 stored-procedures optional-parameters
Ruby optional parameters

If I define a Ruby functions like this: def ldap_get ( base_dn, filter, scope=LDAP::LDAP_SCOPE_SUBTREE, attrs=…

ruby optional-parameters
Is there a way to provide named parameters in a function call in JavaScript?

I find the named parameters feature in C# quite useful in some cases. calculateBMI(70, height: 175); What can I use if …

javascript function optional-parameters named-parameters
maven command line how to point to a specific settings.xml for a single command?

Is it possible to point to a specific settings file in order to override the default settings.xml being used …

maven command-line overriding settings optional-parameters