GeneThomas
Joined 3 years ago
Joined 3 years ago
The new Xenon Design Rationale shows how Xenon is the best data description language.
The new Xenon Design Rationale shows how Xenon is the best data description language.
The linked document justifies all design decisions.
Please try to make valid criticism.
<Book>
<Name=A Plan>
<Author>
<Name=Eric Harrison>
<Mobile=+64 24 240 990>
<$>
<<Reviews>
Fascinating.
<&>
Of interest.
<&>
Worth reading.
<$>>
<$><< means it relates to starting an array, $>> means it is the end, $$ meaning something else — an empty array!
The xᴍʟ alternative is a bodge:
public class PurchaseOrder
{
public Item[] ItemsOrders;
}
public class Item
{
public string ItemID;
public decimal ItemPrice;
}
serializes to: <PurchaseOrder>
<ItemsOrders>
<Item>
<ItemID>aaa111</ItemID>
<ItemPrice>34.22</ItemPrice>
</Item>
<Item>
<ItemID>bbb222</ItemID>
<ItemPrice>2.89</ItemPrice>
</Item>
</ItemsOrders>
</PurchaseOrder>
Where the array is marked up as two sub elements both called <Item>:Xᴇɴᴏɴ has first class support for arrays:
<PurchaseOrder>
<<ItemsOrders>
<ItemID=aaa111>
<ItemPrice=34.22>
<&>
<ItemID=bbb222>
<ItemPrice=2.89>
<$>>
<$>
The elements may be scalars so <PurchaseOrder>
<<ItemsOrders>
<$>>
<$>
has an array with one item of the empty string. So a separate syntax for empty arrays is required! <PurchaseOrder>
<<ItemsOrders$$>>
<$>Thanks.
You seem fairly comfortable with the rest of English. Korean numbers do not seem to scale well.
> allow `$` or not requires a single example
Java allows $ in identifiers.
Xᴇɴᴏɴ provides semantics around common data types.