Issue #7019 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned
Assignee changed from mame (Yusuke Endoh) to matz (Yukihiro Matsumoto)
Target version changed from 2.0.0 to Next Major

> IMO, it is too slow to introduce such a big feature.

Completely agreed.

-- 
Yusuke Endoh <mame / tsg.ne.jp>
----------------------------------------
Feature #7019: allow `private` and `protected` keywords to take blocks
https://bugs.ruby-lang.org/issues/7019#change-31784

Author: alexeymuranov (Alexey Muranov)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: Next Major


=begin
I like to indent my private methods one level deeper, but this indentation is inconsistent with the syntax:

 class C
   def f
     #
   end
   private
     def g
     #
     end
 end

I think it would be nice if the (({private})) keyword could take a block, then i would write:

 class C
   def f
     #
   end
   private do
     def g
     #
     end
   end 
 end
=end



-- 
http://bugs.ruby-lang.org/