[#66126] Creation/Conversion methods/functions table for Ruby types — SASADA Koichi <ko1@...>
Hi,
5 messages
2014/11/07
[#66248] [ruby-trunk - Feature #10423] [PATCH] opt_str_lit*: avoid literal string allocations — normalperson@...
Issue #10423 has been updated by Eric Wong.
3 messages
2014/11/13
[#66595] [ruby-trunk - Bug #10557] [Open] Block not given when the argument is a string — bartosz@...
Issue #10557 has been reported by Bartosz Kopinski.
3 messages
2014/11/30
[ruby-core:66434] [ruby-trunk - Feature #10489] Add inherit method for clearer and multiple inheritance
From:
xiewenwei@...
Date:
2014-11-24 10:21:33 UTC
List:
ruby-core #66434
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/