public, protected and private should return their arguments instead of self
Matsuda-san suggested me that
private should return their arguments instead of
to write such code:`
require "finalist" # see https://github.com/joker1007/finalist class Foo extend Finalist final private def foo end end
I believe that it's reasonable request, and also believe that there is no product code which uses the return values of
Matz, how do you think about this change?
The patch is attached.
#3 [ruby-core:85113] Updated by Eregon (Benoit Daloze) 25 days ago
Would it be simpler for the semantics to always return an Array of symbols?
final (and other potential uses) has to handle both a single Symbol and an Array of Symbol.
One concern is the extra allocations for the common case of a single argument given to