Some details about XEN

There may be other places on the net that have some of the XEN details but the folowing article is the first place I've ran into thus far that gives some examples of what the syntax may look like.

Some interesting hilights:

foreach (OrdersRow row in (select * from orders where Total > threshold))
{
    …
}

and

int position = 0;
foreach (Item c in ledger.child::*) { 
   if (c is Deposit || c is OpeningBalance) {
     balance += c.amount;
   } else {
     balance -= c.amount;
   }
   yield {balance};
}

notice the embeded xpath like syntax. Very interesting stuff.

http://www.osnews.com/story.php?news_id=6042

P.S. I just found this after googling for XEN.

No Comments