Issue #10489 has been updated by xie wenwei.


Brulio 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: Brulio 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/