From: "Eregon (Benoit Daloze) via ruby-core" <ruby-core@...>
Date: 2024-06-08T12:11:08+00:00
Subject: [ruby-core:118252] [Ruby master Feature#20565] Relax formal argument at label

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/