Hi,
In message "[ruby-talk:11675] Re: RCR: shortcut for instance variable initialization"
on 01/02/27, Jean Michel <jmichel / schur.institut.math.jussieu.fr> writes:
|I do not understand exactly the nature of the objections. It seems to me
|to be a fairly innocuous notational shortcut. If I understand correctly the
|proposal, it is just that when you have a method
|
| def f(a,@b,c)
| ...
| end
|
|it is understood as exactly equivalent to
|
| def f(a,dummy,c)
| @b=dummy
| ...
| end
|
|unless I missed something?
It is what Dave wanted, yes. I personally feel like that method
paremeters are names to the values passed, not hidden assignment,
regardless of how implementation works. So that side effect,
i.e. altering instance/global variables, are "too much" for them,
I think.
matz.