wollok icon indicating copy to clipboard operation
wollok copied to clipboard

Change mixins syntax to follow the linearization direction

Open javierfernandes opened this issue 9 years ago • 2 comments

Currently mixins are declared like in scala

class C inherits B mixed with M1, M2, M3

This produces the following inheritance chain by linearization

C -> M3 -> M2 -> M1 -> B

Which is not complex if you already know the way mixins are combined but makes me wonder why don't we try a syntax that visually resembles to the final chain ?

class C mixed with M3, M2, M1 inherits B

javierfernandes avatar Dec 27 '15 22:12 javierfernandes

The altered order seems really weird to me, but that is perhaps because I get used to that syntax.

So I really don't have any strong position here, but my guess is that you may be right.

We should do A/B testing here :smile:

flbulgarelli avatar Dec 31 '15 04:12 flbulgarelli

Hoy dando clase me resultó extraño y también es confuso para el alumno tener este formato, 100% de acuerdo con la idea de Javi de modificar la forma de definir el mixin para que siga la linearización.

fdodino avatar May 15 '20 00:05 fdodino