I like to use _. I can see one benefit of your suggestion being that it is slightly
shorter. I am mostly neutral on the suggestion but perhaps leaning towards a bit in
favour (I have not thought it through fully yet though). [I guess it comes down to
which identifier to use in an implicit manner, be it _ or anything else.]
It was the first candidate for a single anonymous block parameter. But we abandoned for the compatibility's sake. Too many existing programs use _ as a local variable (far too more than _1).
We'd be happy to be proven wrong. If someone is willing to experiment and to find the solution to solve the compatibility problem, please reopen the issue.
All the examples I could find where {|_| ...}, which could be made compatible. I still wonder what valid code example could be incompatible. Was there such an example in the wild?
It was the first candidate for a single anonymous block parameter. But we abandoned for the compatibility's sake. Too many existing programs use _ as a local variable (far too more than _1).
We'd be happy to be proven wrong. If someone is willing to experiment and to find the solution to solve the compatibility problem, please reopen the issue.
Matz.
Could you please point us to an existing discussion or maybe show a few examples?