3 ms·
Doesn't this introduce an ambiguity? def foo(*arg, **kwarg) puts "#{arg}/#{kwarg}" end b = 'meh' foo(:a => b) Now this produces []/
by jjgreen 6y ago
Doesn't this introduce an ambiguity?
def foo(*arg, **kwarg)
puts "#{arg}/#{kwarg}"
end
b = 'meh'
foo(:a => b)
Now this produces
[]/{:a=>"meh"}
But with right-assign
[:a]/{}
?
- baash05 6y agoOh. The bugs that this would produce. And spotting it visually would be killer