The design team certainly considered (at length) changing the precedence of comma with respect to assignment, but in the end, after weighing all the pros and cons, it seemed to us that cultural continuity and enforced visual encapsulation won out over the slight gain in convenience.
As for the relationship of concatenation and addition, when we had a choice between adding more precedence levels or unifying precedence levels, we had a slight bias towards unification, so anything remotely resembling addition or multiplication tended to end up at those precedence levels. This is one of those areas where you have to balance out the need for extra parens with the need to keep a complex precedence table in one's head, and in this case we (again) opted for the extra parens in order to keep the mental model simpler. It doesn't hurt the reader of your code to have to parenthesize a few things, and while Laziness is one of the chief virtues of a programmer, with Perl 6 we're trying to take into account the Laziness of the reader as well as the writer.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.