On Tue, Apr 24, 2001 at 01:05:24PM -0700, Nathan Wiger wrote:
: Michael G Schwern wrote:
: > 
: > cc and ce
: > 
: >         Perl 5                          Perl 6
: >         print "foo" . "bar";            print "foo" cc "bar;
: >         print 2 . 4;                    print 2 cc 4;
: >         print "foo " . ($i + 1);        print "foo " cc ($i + 1);
: >         $foo .= "bar ";                 $foo ce "bar";
: 
: > It also has the nice side-effect of preserving '.=' functionality,
: > which I'd rather not lose (especially after having made fun of
: > $foo = $foo . 'bar'; type code).
: 
: While we're brainstorming a wish-list, here's something I've always
: wanted, a replacement for:
: 
:    $a = $b . $a;
: 
: Under the above plan, maybe this is:
: 
:    $a ca $b;
: 
: For "concat after"?

Now this sparks my interest.  :)

The only think I don't like is:

  $a ce $b;
  $a ca $b;

because I'm so used to seing

  $a [char]= $b;

I would think of:

  $a c= $b;

but then the ca() idea might not be feasible unless we thought:

  $a ce= $b;
  $a ca= $b;

was a good idea.

-- 
Casey West

Reply via email to