develooper Front page | perl.perl5.porters | Postings from February 2004

Deprecation of v-strings

Thread Next
From:
John Peacock
Date:
February 23, 2004 07:23
Subject:
Deprecation of v-strings
Message ID:
403A1B06.3040207@rowman.com
I've been trying to get back into the version/v-string mode after a while 
getting my subversion/svk repositories /just right/.  I am strongly considering 
recommending that v-strings _not_ be deprecated now, or ever, in Perl5.  The 
deeper I get into the guts, the less I like throwing warnings into the code.

With the magic v-string patch in place, v-strings are largely defanged (i.e. you 
can recover from the transformation in XS at least), so that they are "Mostly 
harmless."  When/if I complete the version object integration, there will be 
less need to worry about v-strings being used for $VERSION initialization. 
v-strings could continue to be used for arbitrary bytestring (UTF) code without 
any real harm being done.

I could produce a 'magic v-string' patch for 5.6.3-to be (if anyone one is 
serious about doing that), so we could say "most recent release in each branch > 
5.6.x contains safe v-string's" and do it with a straight face.

Comments?  Rotten eggs?  Bricks?

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

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