Actions
Bug #20675
openParse error with required kwargs and omitted parens
Status:
Open
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.
No data to display
Actions
Like0