It's not retarded... lexical closure is so simple to do in any language with enforced declarations that it's a wonder it's not MORE common place. Ada does not support closure for example, but it could.
You misunderstand. I'd run straight out of superlatives and had to start on the other side to express the degree to which this gladdens my sick and twisted heart.
C does too have collection (on automatic variables).
Note: I didn't say garbage collection!!
When the function ends the automatic's are collected. Doing closures is no worse than any other function as far as I can see - it's still a giant pain in the bum.
Discussion (7)
Now this is interesting. Thanks for the heads-up!
please tag "computer, programming"
That is so awesome, it is retarded.
D'A
It's not retarded... lexical closure is so simple to do in any language with enforced declarations that it's a wonder it's not MORE common place. Ada does not support closure for example, but it could.
You misunderstand. I'd run straight out of superlatives and had to start on the other side to express the degree to which this gladdens my sick and twisted heart.
D'A
Claims inspired by this comment
I am disturbed by the use of the word "retarded" in a non-technical, pejorative fashionPoor, poor GCC. Closures without garbage collection look quite painful.
Of course, I am speaking of the language that has stack-based continuations (longjmp).
C does too have collection (on automatic variables).
Note: I didn't say garbage collection!!
When the function ends the automatic's are collected. Doing closures is no worse than any other function as far as I can see - it's still a giant pain in the bum.