Discussion: Why metaclasses?
Afficher un message
Vieux 21/06/2008, 13h07   #10
Marc Heiler
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Why metaclasses?

> I don't know why exactly --only Matz knows-- but IMO the choice is
> somewhat arbitrary because whichever is chosen, class or module, you
> have to take away some of its typical behaviors to have it be
> singletonsomething.


At times I wanted a language that does away with the distinction between
class and module and objects, and rather focuses on objects, and
behaviour only, with an elegant syntax like ruby has (but less complex
as a whole)
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
 
Page generated in 0,04637 seconds with 9 queries