PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Assignment

Assignment

Assignment is a 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, C#, Ruby, Fortran, R, Go, Pascal, Ada, Lua, PowerShell, Elixir, Bash, Eiffel, Smalltalk, Nim, Oberon, ML, Simula, AMPL, BCPL, Algol, Dylan, PL/I, Io, Ini, AutoHotkey, Seed7, Ion, PL/M, Modula, CPL, Reia, Mary, Superplan

Example from JavaScript:
var name = "John"
Example from Python, Elixir:
name = "John"
Example from C++:
int i = 0;
Example from PHP:
$name = "John"
Example from C#:
int pldb = 80766866;
Example from Ruby:
pldb = 80766866
Example from Bash:
FOO="bar"
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.
anonymous-functions-feature.html 路 assignment-feature.html 路 booleans-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 33 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com