In Scala there is a convention that the function argument to functional programming operations like map
can be an expression that uses an underscore. The convention is that the anonymous function in a Julia call
sum(x -> x < 1.0e-5, rand(10000))
could be written as
sum(_ < 1.0e-5, rand(10000))
without the need to write _ ->
at the beginning of the expression.
I’m just throwing this idea out there. I write a lot of anonymous functions in such functional programming constructs and it would be convenient to use expressions like this instead. However, I have no idea how difficult it would be to implement this or how offensive such a convention might be to others.