I'm not quite sure why you explained where the plus went, since the original choice for string addition was the underscore .. So why did that particular one get disgarded?

I haven't tried explaining why the tilde glyph is used, but instead why having a universal glyph for string operations is useful. Sorry if the title mislead you.

I do say something about why that glyph isn't dot, but even for that I'm not mentioning all there is: the small size of the dot makes it too easy to overlook or to be a semi-meta-operator and OO takes precedence over concatenation.

Underscore has many of the problems dot has, and added to that the many problems that a \w character brings along.

I explain plus first, because tilde is the string version of that operator, and I think the consistency in that is very important, and much easier to explain by waiting with the promised subject. Otherwise, the explanation of plus would have come after, and not be an essential part of the article anymore, but instead an appendix that gets less attention.

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }


In reply to Re^2: (P6) Why the tilde makes sense by Juerd
in thread (P6) Why the tilde makes sense by Juerd

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.