Whats the diff between 'concept properties' and 'properties'
In the concept declaration editor i see 2 kinds of things-
properties
links
concept properties
concept links
Whats the diff between links/props and concept links/concept props???
Please sign in to leave a comment.
Prashant Deva wrote:
Concept properties link is something like static fields, simple links
and properties is like instance fields in Java.
Could you give me a little example of where they can be used?
Examples of concept properties are "alias", "short_description" and "abstract" in structure language (declared in model "jetbrains.mps.bootstrap.structureLanguage.library")
Indeed they resemble static fields in java classes.
There are no real life examples of the concept link so far. In theory, concept link allows to create subordinate declaration in a concept declaration (aggregation concept link) or create association between a concept and any other node, even situated at lower meta-level (reference concept link).
For instance, some PaletteConcept may have reference to class "Color".
Since structure language is special case, it isn't extensible in the same way as any other language. Concept link/property provide alternative extension mechanism for structure language.
Igor