I've abused static to simplify the example, this might be considered poor style by C# afficionados or OO purists

That is a curious statement. Why is it considered poor style?

some have already grumbled about MS inventing another syntax instead of following the lead of Python, PHP, or PCRE

This is by far my biggest gripe, actually it's no longer a gripe, but rather an expected and regular annoyance. They even regularly *reinvent* their own syntax in cases where it is not necessary! It's like a game of "hide the ball" and they do it *yet again* with "Longhorn" (et al).

The 'hide the ball' phenomenon combined with the impracticality of CSharp (sidenote and gripe: 'CSharp' and 'dotNet' are better typographical keywords than the alternatives) as a 'script oriented programming' tool render it less attractive as a general-purpose tool to use every day, like perl. The IDE is nice though.

Nevertheless, nice writeup (was curious how EdwardG would follow up on this issue, as usual, very informative++)


In reply to Re: Comparing Perl with C#, a simple templating example by dimar
in thread Comparing Perl with C#, a simple templating example by EdwardG

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.