3 ms·
I think this conversation is at cross purposes. In algebra, the statement: x = x + 1 is meaningless. Algebraic variables are not the same as what are effectiv
by rswail 7y ago
I think this conversation is at cross purposes. In algebra, the statement:
x = x + 1
is meaningless. Algebraic variables are not the same as what are effectively names for value storage locations, which is the common meaning of a "variable" in most imperative languages.
Of course, with FP, the concept of a mutating variable is frowned upon in general. Mutation is effectively a performance hack.
- zapzupnz 7y agoI suspect you're right that GP was likely talking about a different context but I think that person failed to make that clear, therefore making it seem like their mantra for variable names was universally applicable. Clearly, it isn't.