Open ronaldtse opened 4 years ago
@ronaldtse second example denotes shorthand syntax?
Does the third example have values in it as described in #16 or does it a separate type of object?
@ronaldtse second example denotes shorthand syntax?
Both of these specify an attribute value without a class (maybe an anonymous class). I was just trying to represent them. Now I notice they are not very correct.
Maybe the correct notation is:
// No Class
// of the pattern: "instance {LutaML reference name}:{Class name}" since there is no ":" there is no class,
// identical to:
// instance MyInstance: {
instance MyInstance {
"license Plate":String = "HH-OO 42"
}
// Has Class
// of the pattern: "instance {LutaML reference name}:{Class name}"
instance MyInstance:MyClass {
"license Plate":String = "HH-OO 42"
}
?
Does the third example have values in it as described in #16 or does it a separate type of object?
Same as #16, except that these are typed elements (contains attribute name + attribute type + attribute value).
In #16 there was not attribute type:
From #16:
instance :Expression {
myvalue=1 // no value type here
}
instance :Expression {
myvalue: Number = 1 // has value type here
}
Instance specification
Instance specification-Notation
Proposal:
1 & 2 are equivalent.
3.