Re:Ruby 3.1.0 Preview 1
by sodapopcan on Tuesday November 09, 2021 @12:04PM
(#29164265)
My bad, the example illustrates in a function head. So how are require keyword args going to work now?
Re:Ruby 3.1.0 Preview 1
by sodapopcan on Tuesday November 09, 2021 @12:16PM
(#29164387)
Oh wait, it's function definition vs callsite (duh). This is still unnecessary confusion.
Also, how is this going to work in function heads? `def foo(bar:)` means that `bar` is a required keyword. Is it going to have to be `def foo({bar:})`? In that case, it's going to come off as a potential style error to many people.