Variables, Parameters, Arguments: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 14: Line 14:
Method parameters in various languages:
Method parameters in various languages:
* [[Java_Language#Method_Parameter|Java method parameters]]
* [[Java_Language#Method_Parameter|Java method parameters]]
* [[Python_Language_Functions#Function_Parameters|Python function parameters]]


=Argument=
=Argument=
=Discussion=
=Discussion=
This terminology applies to Java method invocations, Python method invocations and even Java generics, where the ordinary parameters and variables are replaced with [[Java_Generics_Concepts#Type_Parameters|type parameters]] ([[Java_Generics_Concepts#Type_Variable|type variables]]), and the arguments are replaced with [[Java_Generics_Concepts#Type_Argument|type arguments]].
This terminology applies to Java method invocations, Python method invocations and even Java generics, where the ordinary parameters and variables are replaced with [[Java_Generics_Concepts#Type_Parameters|type parameters]] ([[Java_Generics_Concepts#Type_Variable|type variables]]), and the arguments are replaced with [[Java_Generics_Concepts#Type_Argument|type arguments]].

Revision as of 18:52, 17 August 2023

Internal

Variable

Variables in various programming languages:

Parameter

Method parameters in various languages:

Argument

Discussion

This terminology applies to Java method invocations, Python method invocations and even Java generics, where the ordinary parameters and variables are replaced with type parameters (type variables), and the arguments are replaced with type arguments.