Named Parameters? Aren't They All Named?
None of us wants to delve back into the block/method/param argument again, right? But we could still use a good answer. Dan Berger has an explanation of how Sydney got named parameters without need to plunder Ruby’s current method definitions.
# A standard Ruby method declaration def foo(a, b, c=4) ... end # Ideal syntax foo(a:1, b:2, c:3) # a=1, b=2, c=3 foo(a:1, b:2) # a=1, b=2, c=4 foo(1, 2, c:3) # a=1, b=2, c=3 foo(1, 2, 3) # a=1, b=2, c=3