Naming positional arguments at call site

One more objection would be that different methods (perhaps from different packages by different authors) may have different internal variable names, and at compile time it can be unknown which method will be called.

Still IMO it would be nice to have named positional arguments for documentation purposes. My feeling, whereas inline comments is technically OK, the readability is pretty bad, which is what may count.

my_func( #=x=# [1,2], #=y=# [1,2] )

I’d suggest two other options:

  • allow named positional arguments, followed by (mandatory in this case) semicolon, but let compiler ignore the names - that could be the job of a linter
  • or make a macro with the same effect, like
my_func( @*(x= [1,2]), @*(y=[1,2]) )