Content deleted Content added
Diego Moya (talk | contribs) →The lede - as opposed to?: ping Greglocock |
Diego Moya (talk | contribs) |
||
Line 146:
As opposed to all those other computer languages where calling f(x) produces different results each time for the same x? Perhaps there is an important idea there but if so it is pretty fucking badly expressed. Is it just that there are no global variables? If so, yawn. [[User:Greglocock|Greglocock]] ([[User talk:Greglocock|talk]]) 06:41, 24 April 2017 (UTC)
:{{ping|Greglocock}} I've tried to clarify, let me know if that's enough. It's not just about global variables, but having no state that is not captured in the arguments and return values. [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 12:45, 24 April 2017 (UTC)
:P.S. Technically you can have global variables in a pure functional language, as long as they're immutable. "Global" is a term describing the [[Scope (computer science)|scope]] of a variable, not its changes in state. Having no state changes in ''any'' variable in the whole program is a rather strong requirement, which changes the programming paradigm significantly with respect to imperative programming. [[User:Diego Moya|Diego]] ([[User talk:Diego Moya|talk]]) 12:52, 24 April 2017 (UTC)
|