Languages Features Calendar About Lists Add Language
GitHub icon



Assignment is a language feature.

In computer programming, an assignment statement sets and/or re-sets the value stored in the storage location(s) denoted by a variable name; in other words, it copies a value into the variable. In most imperative programming languages, the assignment statement (or expression) is a fundamental construct.

Languages with Assignment include JavaScript, C, Python, C++, PHP, Ruby, R, Go, C#, Fortran, Lua, Pascal, Ada, PowerShell, Bash, Smalltalk, Nim, Eiffel, Dylan, Simula, Io, BCPL, Oberon, AMPL, ML, Seed7, Algol, PL/I, AutoHotkey, Ini, CPL, Modula, PL/M, Mary, Ion, Reia, Superplan

Example from JavaScript:

var name = "John"

Example from Python:

name = "John"

Example from C++:

int i = 0;

Example from PHP:

$name = "John"

Example from Ruby:

pldb = 80766866

Example from C#:

int pldb = 80766866;

Example from Bash:


Example from Ini:

[branch "master"] remote = origin merge = refs/heads/master

Example from Ion:

// A subset of symbols called identifiers can be denoted in text without single-quotes.

Article source

PLDB - Build the next great programming language 路 v2022 Docs Acknowledgements Email GitHub