ELENA-LANG / elena-lang

ELENA is a general-purpose language with late binding. It is multi-paradigm, combining features of functional and object-oriented programming. Rich set of tools are provided to deal with message dispatching : multi-methods, message qualifying, generic message handlers, run-time interfaces
https://elena-lang.github.io/
MIT License
227 stars 23 forks source link

mixings ruby style #612

Open arakov opened 10 months ago

arakov commented 10 months ago

mixings ruby style

bencz commented 10 months ago

What exactly Ruby-style are you planning to bring?

arakov commented 10 months ago

It is inheriting the functionality without directly inheriting the class - https://culttt.com/2015/07/08/working-with-mixins-in-ruby.

In ELENA you can use extension method for this. But they are external ones and accessible only in compile-time.