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
sdo/do2/ddo, tdo/do3
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 sdo-block
f(x, y) sdo
...
end
The sdo-block
would put the anonymous function into the second position.