(You): What programming languages still support the LET keyword? As in “LET x = 7”
(Patrick): In most variants of BASIC, LET is legal syntax, but it is unnecessary for an assignment statement.
(You): I know, that’s why I was curious. Mathematically, “x=x+7” seems like a silly statement. Most computer languages know it means “LET x=x+7”, but I was wondering how many of them still use LET.
(Patrick): in most programming languages these days, = is an assignment operator, so “x = x + 7” means “take x, add 7 to it, then assign the resulting value to x”. The LET keyword was intended as a hint to the BASIC interpreter, that’s all. As far as I know (20 years programming), no other language uses the LET keyword
(You): Thanks! Thats what I was wondering.
[Vark assigned category: programming languages, more details]