SerraAvenger
Cuz I can
- Reaction score
- 234
Wandering through this forum, I often saw ppl consisting on a
[any local variable here] = null
at whether the end of the function or as soon as the variable got useless...
But I do not get why. The only possible explanation might be an "undefined" result when using that variable again afterwards - but I don't really see the advantage of "Not working" towards "undefined". And my local variables are destroyed anyways... Neither do I use it afterwards. Especially "nulling" at the end of a foo seems absolutely pointless to me...
And no I don't want the help of any semi-pro's that tell me their opinion and not how it is. And no, I don't judge pro / not pro from the number of green buttons right to your name ( aka reputation ) ( which doesn't mean that I don't give + rep for anyone helping me^^ )
Ty in advantage Davey Jones
[any local variable here] = null
at whether the end of the function or as soon as the variable got useless...
But I do not get why. The only possible explanation might be an "undefined" result when using that variable again afterwards - but I don't really see the advantage of "Not working" towards "undefined". And my local variables are destroyed anyways... Neither do I use it afterwards. Especially "nulling" at the end of a foo seems absolutely pointless to me...
And no I don't want the help of any semi-pro's that tell me their opinion and not how it is. And no, I don't judge pro / not pro from the number of green buttons right to your name ( aka reputation ) ( which doesn't mean that I don't give + rep for anyone helping me^^ )
Ty in advantage Davey Jones