From: xiewenwei@... Date: 2014-11-24T10:21:33+00:00 Subject: [ruby-core:66434] [ruby-trunk - Feature #10489] Add inherit method for clearer and multiple inheritance Issue #10489 has been updated by xie wenwei. Br��ulio Bhavamitra wrote: > A new and more intuitive syntax: > > class B > end > class A > inherit B > end > > Instead of (but keeping this for backwards compatibility): > > ``` > class B > end > class A < B > end > ``` > > Besides, this allows multiple inheritance. Also, `inherit` could be implemented with just `extend` plus `include`? Module is "multiple inheritance" for ruby. I don't think it is a good idea. ---------------------------------------- Feature #10489: Add inherit method for clearer and multiple inheritance https://bugs.ruby-lang.org/issues/10489#change-50064 * Author: Br��ulio Bhavamitra * Status: Open * Priority: Normal * Assignee: Yukihiro Matsumoto * Category: syntax * Target version: Next Major ---------------------------------------- A new and more intuitive syntax: class B end class A inherit B end Instead of (but keeping this for backwards compatibility): ``` class B end class A < B end ``` Besides, this allows multiple inheritance. Also, `inherit` could be implemented with just `extend` plus `include`? -- https://bugs.ruby-lang.org/