
8 Jun
2024
8 Jun
'24
12:11 p.m.
Issue #20565 has been updated by Eregon (Benoit Daloze). I think it should remain forbidden, arguments must be local variables, but `C` and `$g` are not valid local variable names. ---------------------------------------- Feature #20565: Relax formal argument at label https://bugs.ruby-lang.org/issues/20565#change-108749 * Author: nobu (Nobuyoshi Nakada) * Status: Open ---------------------------------------- Just a thought: if `def foo(if:)` is possible, shouldn't `def foo(C:)` and `def foo($g:)` also be possible...? -- https://bugs.ruby-lang.org/