Actions
Bug #20675
closedParse error with required kwargs and omitted parens
Bug #20675:
Parse error with required kwargs and omitted parens
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Description
As pointed out in https://github.com/mruby/mruby/issues/6268, keyword arguments without surrounding parens are a bit confusing, e.g.
def foo arg:
123
end
is parsed as
def foo(arg:)
123
end
where
k=25
f k:
10
is parserd as
k=25
f(k: 10)
In summary, should we ignore newlines after keyword labels? Should we make them behave consistent?
Matz.
Actions