Actions
Feature #14396
closedpublic, protected and private should return their arguments instead of self
Feature #14396:
public, protected and private should return their arguments instead of self
Description
Matsuda-san suggested me that public, protected and private should return their arguments instead of self,
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 value of public, protected and private.
Matz, how about this change?
The patch is attached.
Files
Actions