Why is variable substitution called variable substitution if we retrieve the value?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I've read here the following text:
The name of a variable is a placeholder for its value, the data it
holds. Referencing (retrieving) its value is called variable
substitution.
If we retrieve/or reference the value, why is the terminology is "to substitute" and not just "to retrieve" or "to reference"?
variable-substitution
add a comment |Â
up vote
0
down vote
favorite
I've read here the following text:
The name of a variable is a placeholder for its value, the data it
holds. Referencing (retrieving) its value is called variable
substitution.
If we retrieve/or reference the value, why is the terminology is "to substitute" and not just "to retrieve" or "to reference"?
variable-substitution
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've read here the following text:
The name of a variable is a placeholder for its value, the data it
holds. Referencing (retrieving) its value is called variable
substitution.
If we retrieve/or reference the value, why is the terminology is "to substitute" and not just "to retrieve" or "to reference"?
variable-substitution
I've read here the following text:
The name of a variable is a placeholder for its value, the data it
holds. Referencing (retrieving) its value is called variable
substitution.
If we retrieve/or reference the value, why is the terminology is "to substitute" and not just "to retrieve" or "to reference"?
variable-substitution
edited Nov 10 '17 at 11:39
Jeff Schaller
32k849109
32k849109
asked Nov 10 '17 at 4:49
Arcticooling
83123
83123
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Think of it in terms of the character strings: you start with
$variable
and after variable substitution that becomes
value
The placeholder is replaced by the value, hence variable substitution. ThereâÂÂs no reference to the variable after this (the shell doesnâÂÂt remember where the value came from).
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Think of it in terms of the character strings: you start with
$variable
and after variable substitution that becomes
value
The placeholder is replaced by the value, hence variable substitution. ThereâÂÂs no reference to the variable after this (the shell doesnâÂÂt remember where the value came from).
add a comment |Â
up vote
1
down vote
accepted
Think of it in terms of the character strings: you start with
$variable
and after variable substitution that becomes
value
The placeholder is replaced by the value, hence variable substitution. ThereâÂÂs no reference to the variable after this (the shell doesnâÂÂt remember where the value came from).
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Think of it in terms of the character strings: you start with
$variable
and after variable substitution that becomes
value
The placeholder is replaced by the value, hence variable substitution. ThereâÂÂs no reference to the variable after this (the shell doesnâÂÂt remember where the value came from).
Think of it in terms of the character strings: you start with
$variable
and after variable substitution that becomes
value
The placeholder is replaced by the value, hence variable substitution. ThereâÂÂs no reference to the variable after this (the shell doesnâÂÂt remember where the value came from).
answered Nov 10 '17 at 5:20
Stephen Kitt
143k22312377
143k22312377
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403667%2fwhy-is-variable-substitution-called-variable-substitution-if-we-retrieve-the-val%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password