[#84867] [Ruby trunk Bug#14357] thread_safe tests suite segfaults — v.ondruch@...

Issue #14357 has been reported by vo.x (Vit Ondruch).

11 messages 2018/01/15

[#84980] [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — hsbt@...

Issue #13618 has been updated by hsbt (Hiroshi SHIBATA).

10 messages 2018/01/23
[#85012] Re: [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — Eric Wong <normalperson@...> 2018/01/23

hsbt@ruby-lang.org wrote:

[ruby-core:84961] [Ruby trunk Feature#7019][Rejected] allow `private` and `protected` keywords to take blocks

From: kou@...
Date: 2018-01-22 00:27:28 UTC
List: ruby-core #84961
Issue #7019 has been updated by kou (Kouhei Sutou).

Status changed from Assigned to Rejected

#3753 adds `private def ...` support. If you still want this feature, please reopen this issue.

----------------------------------------
Feature #7019: allow `private` and `protected` keywords to take blocks
https://bugs.ruby-lang.org/issues/7019#change-69672

* Author: alexeymuranov (Alexey Muranov)
* Status: Rejected
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* Target version: Next Major
----------------------------------------
I like to indent my private methods one level deeper, but this indentation is inconsistent with the syntax:

~~~ruby
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:

~~~ruby
class C
  def f
    #
  end
  private do
    def g
    #
    end
  end
end
~~~




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

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next