Am I the only one thinking "Cute, but WHY???"... (Edit: I should note that I did ++ Zaxo, it's a cool experiment.)

It's interesting, and I guess it'll be cool to be able to say

# this won't render right as a code block, so it's pre
my ($x,$sum);
Σ(\$x,1,100,sub{$sum+=$x;$sum});
But I'm afraid that venturing into multi-byte character sets for source code is pretty dangerous... I'd think the risks don't outweigh the benefits.

It is important to be able to represent them in strings and data, of course.

Oh well, the powers that be did decide that perl source could be utf-8, so it's not like I can retroactively change their minds. But the possible toolset incompatibilities outweigh the benefits, in my mind, of sub Σ, or even, in French, things like sub arrivée and sub départ...
--
Mike


In reply to Re: [5.8.0 Note] A Sub Named Sigma by RMGir
in thread [5.8.0 Note] A Sub Named Sigma by Zaxo

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.