in reply to Re: Perl 6 - Operator renaming
in thread Perl 6 - Operator renaming

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.

Replies are listed 'Best First'.
Re^3: Perl 6 - Operator renaming
by Happy-the-monk (Canon) on Sep 08, 2005 at 15:17 UTC

    with Perl 6 we're trying to take into account the Laziness of the reader as well as the writer

    Now I feel enthralled. (++)

    Cheers, Sören