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.

List of queryParams is empty in Angular 5 routing

I'm new to Angular and I've looked for solution of my problem, but unfortunately I haven't found that. When I …

angular typescript router optional-parameters angular-activatedroute
Named/optional parameters in Delphi?

In one of the Delphi demo applications, I've stumbled upon some syntax that I didn't know the Delphi compiler accepted: // ......\…

delphi optional-parameters named-parameters
Constructor does weird things with optional parameters

Possible Duplicate: least astonishment in python: the mutable default argument I want to understand of the behavior and implications of …

python constructor optional-parameters
Is it possible to use optional/default parameters in a lambda expression in c#?

Is there a way to use optional arguments (default parameters) with lambda expressions in c#? I have read through the …

c# lambda optional-parameters
How to specify only some optional arguments when calling function in ColdFusion?

I have a ColdFusion function "foo" which takes three args, and the second two are optional: <cffunction name="foo" …

syntax coldfusion optional-parameters
Using C# delegates with methods with optional parameters

Is there a chance to make this code work? Of course I can make second definition of Foo, but I …

c# delegates optional-parameters
Action as a optional parameter in a function

Is it possible to have an Action as an optional parameter in a function? The button2Action should be optional. …

c# action optional-parameters
Fortran 90 Presence Of Optional Arguments

I do not understand the behavior of the present() intrinsic function with pgf90 7.2. I wrote a 20 line sample program to …

fortran optional-parameters fortran90
Does PHP allow named parameters so that optional arguments can be omitted from function calls?

Is it possible in PHP to specify a named optional parameter when calling a function/method, skipping the ones you …

php default-value optional-parameters named-parameters php-8
Map Update method with ifAbsent in Dart

I'd like to modify an existing item in a map, as in replace the value of an existing key with …

dictionary flutter dart optional-parameters optional-arguments