Hi,
I wonder why I can do this:
methodcall(k=>v) (method gets a {k=>v} hash)
and this:
ary=[k=>v] (ary becomes [{k=>v}] )
but not this:
a = k=>v
is there an issue related to parsing or something else?
Hi,
I wonder why I can do this:
methodcall(k=>v) (method gets a {k=>v} hash)
and this:
ary=[k=>v] (ary becomes [{k=>v}] )
but not this:
a = k=>v
is there an issue related to parsing or something else?
Hi,
In message “why does key=>val does not give an hash?” on 04/03/20, gabriele renzi surrender_it@rc1.vip.ukl.yahoo.com writes:
I wonder why I can do this:
methodcall(k=>v) (method gets a {k=>v} hash)
Don’t worry. This form of methodcall(k=>v) will be given new meaning
in Ruby2, i.e. methodcall(**{k=>v}).
matz.