Closed anthonyanjorin closed 5 years ago
So, when visualizing constraints these connections should never be made but only when visualizing patterns/rules? Or did i miss a case in which the links must be visualized in constraints?
Hmm... for if/else the variables are shared (and should be visualised as connected if of the same name).
In all other cases (for constraints), variables are not shared.
Right @hijan94 ?
Yes, that's right. In constraints shared variables can exist in if/else constraints only.
... but the visualisation suggests this (see GameOver in FruitGardenLanguage):
The correct visualisation should not connect
garden:FruitGarden
in the different patterns. Note that this is only the case for constraints connected by && and ||. In other cases the variables are shared and should be indicated in the visualisation.