Issue #8038 has been updated by matz (Yukihiro Matsumoto).

Status changed from Open to Rejected

Introducing a new keyword would break a lot of existing programs.  We don't want to do unless there's strong requirement.
Making Object#extend to take a block is interesting idea.  We will discuss later if it's submitted.

Matz.

----------------------------------------
Feature #8038: Keyword `object` to be used instead of `class <<`
https://bugs.ruby-lang.org/issues/8038#change-37353

Author: alexeymuranov (Alexey Muranov)
Status: Rejected
Priority: Normal
Assignee: 
Category: core
Target version: Next Major


=begin
I propose to introduce a new keyword (({object})) and to use it instead of the mysterious (({class <<})):

  object foo
    def bar
      # ...
    end
    def baz
      # ...
    end
  end

instead of

  foo = Object.new
  class << foo
    def bar
      # ...
    end
    def baz
      # ...
    end
  end
=end



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