What are the things you would like improved in the Ruby language?

前端 未结 10 937
生来不讨喜
生来不讨喜 2021-02-02 01:57

What are the things you wish Ruby (and more generally the Ruby community) would improve?

I read somewhere that Ruby is the love-child of Smalltalk and LISP, with Miss P

10条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-02 02:50

    Getting rid of the artificial distinction between Modules and Classes would be nice.

    Both Modules and Classes are Namespaces. Modules are also Mixins, while Classes aren't. Classes can also be instantiated while Modules can't. This distinction is unnecessary. Just get rid of Modules and allow Classes to be used as Mixins.

    An example of a language where this works is Newspeak.

提交回复
热议问题