develooper Front page | perl.perl6.language | Postings from April 2001

Re: YA string concat proposal

Thread Previous | Thread Next
From:
Uri Guttman
Date:
April 24, 2001 13:13
Subject:
Re: YA string concat proposal
Message ID:
200104242013.QAA09149@home.sysarch.com.
>>>>> "NW" == Nathan Wiger <nate@west.sun.com> writes:

  NW>    $a = $b . $a;

  NW> Under the above plan, maybe this is:

  NW>    $a ca $b;

	substr( $a, 0, 0, $b ) ;
	$a =~ s/^/$b/ ;

just my $.02 on this. i rarely use bare . for concat. as someone else
mentioned, it is usually only needed when you have expressions or
function calls that don't directly interpolate in "". a long
. expression with many terms is rare and probably best done with join
''.

on the other hand, i use .= all the time and wouldn't like to lose
it. schwern idea of ce doesn't work for me as only the op= stuff means
assignment and ce would break that (e for = isn't visual enough).

.= could still be left working as that is a complete separate op from
method invocation. i can live with most any other form of . including
none. join is fine for that.

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture and Stem Development ------ http://www.stemsystems.com
Learn Advanced Object Oriented Perl from Damian Conway - Boston, July 10-11
Class and Registration info:     http://www.sysarch.com/perl/OOP_class.html

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About