Charles Petzold writing about a new c# markup using XML. The language may be needed, but he must be joking when he says "In CSSAML, that jumble of symbols and semicolons is abandoned for a structual beauty that can almost induce the programmer to weep with
joy." Looking at it makes me weep, but not for joy.
http://www.charlespetzold.com/etc/CSAML.html
C# Application Markup Language (CSAML): An Evolutionary Leap.
"Here’s another example of perhaps the most notorious syntactical absurdity in all of traditional C# — the for loop:
for (i=0, j=0; i < 1000; i++)
if (IsPrime(i))
j++;
In CSAML, that jumble of symbols and semicolons is abandoned for a structural beauty that can almost induce the modern programmer to weep with joy:
<ForLoop>
<ForLoop.Initializer>
<StatementExpressionList>
<Assignment LValue="i">
<Assignment.Expression>
<Literal Type="{x:Type Int32}"
Value="0" />
</Assignment.Expression>
</Assignment>
</StatementExpressionList>
</ForLoop.Initializer>
<ForLoop.Condition>
<BooleanExpression>
<LessThanExpression LeftSide ="i">
<LessThanExpression.RightSide>
<Literal Type="{x:Type Int32}"
Value="1000" />
</LessThanExpression.RightSide>
</LessThanExpression>
</BooleanExpression>
</ForLoop.Condition>
<ForLoop.Iterator> ..."
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.