In Ruby, I have code similar to the following
foo { |x, y| puts y }
Because the compiler/interpreter keeps warning me about the unused var X, I replaced x with a '*' and the compiler stopped complaining. (I don't know why I decided * was the best choice... It just happened...)
foo { |*, y| puts y }
What does this do exactly? And are there any side effects?