Although it appears #1 convention on style guide of the docs to write functions for a long time till Julia 1.6 now, it brings difficulty on some user cases like manipulating data and piping. I was wondering if it would make life a little easier to withdraw the restriction and let users decide a function argument position at their convenience.
- If the only reason to put a function argument first were using do-block, I think there should be many better solutions out there. My two cents: to implement few more keywords like
and keep backwards compatibility. Eg. calling a function
f(x, g::Function, y) with a function argument at the second place could be called by
f(x, y) sdo ... end
sdo-block would put the anonymous function into the second position.