uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

[static-diagram] Mixin lines should NOT be routed on top of the hierarchy chain #969

Open javierfernandes opened 8 years ago

javierfernandes commented 8 years ago
screen shot 2016-09-04 at 14 13 20

Actually the best would be to show the linearization chain. I mean, the result of mixing it in a given class. Even if that means duplicating the Mixin "box".

For example:

class A {}
class B extends A with M1{}

mixin M1 {}
mixin M2 {}

class C
class D extends C with M1 and M2 {}

Then I think that it would be useful to show this

   B --> M1 --> A
   D --> M1 --> M2 --> C

Or maybe having a button to show linearization / regular layout. :)

fdodino commented 8 years ago

See https://sites.google.com/site/programacionhm/conceptos/mixins to understand Wollok philosophy.

fdodino commented 7 years ago

I was thinking that we should add for this a new "Linearization diagram" for showing only inheritance & mixins relationships, the way Javi described

   B --> M1 --> A
   D --> M1 --> M2 --> C

and leave current Static diagram "regular".