M
Marian Edu
Guest
I'm not aware of any language that have 'constants' parameters and not fully understand in which way updating the value of an input parameter can be seen as a misuse... I have to admit, this is something I do from time to time just to avoid defining an extra variable. I'm perfectly aware the change won't get propagated out of the method/procedure and if anyone else gets confused about how an input parameter behaves then I don't think adding a 'constant' option on it will make it more clear, guess not everyone should be allowed to 'read' code
At most I see this something to be flag as a warning in a lint process.
Continue reading...
Continue reading...