develooper Front page | perl.perl5.porters | Postings from October 2014

Con join skip stringifying its separator?

Thread Next
Father Chrysostomos
October 11, 2014 08:34
Con join skip stringifying its separator?
Message ID:
Currently, even with one item in its list, join($sep, $list) will
stringify the separator.  Is it acceptable to change this such that
$sep does not get stringified in that case (for the sake of optimisa-
tions)?  We don't promise this anywhere, do we?

(As a case in point, s/// may or may not evaluate the rhs multiple
times.  Only undef and tied values exhibit the difference.  We pick
one or the other based on what optimisations are possible, and it has
changed between versions.)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About