4 ms·
I think that the second most upvoted answer is right on spot: variables that a short lifespan should be shorter than the ones having a long lifespan. Of course
by martinced 14y ago
I think that the second most upvoted answer is right on spot: variables that a short lifespan should be shorter than the ones having a long lifespan.
Of course when you're working in a functional language you basically only have short lived "variables" (they're not even "variable" but whatever). Even better yet, in some languages you don't even need that many variables.
The recent voted article about the guy refactoring Java code to Clojure was precisely an example of that.
So why even have "variables" when you can very often do without!?
- lutusp 14y ago> So why even have "variables" when you can very often do without!? In many of those cases, as often as not, the problem of variable names is replaced by the problem of function names, and we're back to square one.