[#106355] [Ruby master Bug#18373] RBS build failure: '/include/x86_64-linux/ruby/config.h', needed by 'constants.o'. — "vo.x (Vit Ondruch)" <noreply@...>
Issue #18373 has been reported by vo.x (Vit Ondruch).
28 messages
2021/12/01
[ruby-core:106758] [Ruby master Feature#14394] Class.descendants
From:
"byroot (Jean Boussier)" <noreply@...>
Date:
2021-12-21 11:38:08 UTC
List:
ruby-core #106758
Issue #14394 has been updated by byroot (Jean Boussier). Just curious about the motivation of the revert though. I sin mainly because of the potential `Module#descendants`? Because unless I'm missing something, the potential future inclusion of `Module#descendants` would change the behavior of `Class#descendants`, as I don't think a `Module` could ever be the descendant of a `Class`. ---------------------------------------- Feature #14394: Class.descendants https://bugs.ruby-lang.org/issues/14394#change-95462 * Author: ridiculous (Ryan Buckley) * Status: Open * Priority: Normal * Assignee: ko1 (Koichi Sasada) ---------------------------------------- There have been numerous implementations of the method Class.descendants by various gems. However, I can't help but think that this ability should be included in the Ruby language itself. Especially since Ruby already offers the counterpart method Class.ancestors. Would it possible to add a `descendants` class method? -- 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>