[#116016] [Ruby master Bug#20150] Memory leak in grapheme clusters — "peterzhu2118 (Peter Zhu) via ruby-core" <ruby-core@...>
Issue #20150 has been reported by peterzhu2118 (Peter Zhu).
7 messages
2024/01/04
[#116382] [Ruby master Feature#20205] Enable `frozen_string_literal` by default — "byroot (Jean Boussier) via ruby-core" <ruby-core@...>
Issue #20205 has been reported by byroot (Jean Boussier).
77 messages
2024/01/23
[ruby-core:116458] [Ruby master Bug#20216] Circular parameter reference not checked for assignment
From:
"kddnewton (Kevin Newton) via ruby-core" <ruby-core@...>
Date:
2024-01-26 18:25:54 UTC
List:
ruby-core #116458
Issue #20216 has been reported by kddnewton (Kevin Newton). ---------------------------------------- Bug #20216: Circular parameter reference not checked for assignment https://bugs.ruby-lang.org/issues/20216 * Author: kddnewton (Kevin Newton) * Status: Open * Priority: Normal * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- I wanted to check if this was a bug or desired. Usually when you reference a parameter within its own default value (optional positional or optional keyword) it raises a syntax error. This is unless you use it in an assignment, in which case it is not checked. Is this desired? Here's an example: ```ruby def foo(bar = bar = 1); end def foo(bar: bar = 1); end ``` I'm not sure what this code is supposed to be doing. I expected it to raise a syntax error. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/