Underscores.jl icon indicating copy to clipboard operation
Underscores.jl copied to clipboard

Allow __ to stand for the argument which accepts a do block

Open c42f opened this issue 5 years ago • 1 comments

WIP - still needs tests + docs

It's also unclear whether this is a desired behavior.

I feel like — though this could be rather useful — it's strangely inconsistent with the meaning of __ as used in other contexts. Further discussion at https://discourse.julialang.org/t/ann-underscores-jl-placeholder-syntax-for-closures/36482

c42f avatar Mar 27 '20 04:03 c42f

On consideration I think this is semantically inconsistent, so I don't think we should do this with __, as tempting as it is. We might need some more ugly notation like _do.

c42f avatar Jun 16 '20 03:06 c42f