Legacy named argument syntax?

I noticed that you can declare named arguments with this odd syntax:

def foo(a b)
  p b

foo(a: 1)

And this gets used in the stdlib. Is it a legacy feature?


1 Like

Thank you. I have now actually used that, as I was coding an extended delegate method that does argument and return processing (for the new https://github.com/BrucePerens/recursive_generic/ shard) and I wanted to have a named argument called return:.