develooper Front page | perl.perl5.porters | Postings from August 2021

Re: removing the old-style package separator

Thread Previous | Thread Next
Leon Timmermans
August 15, 2021 11:03
Re: removing the old-style package separator
Message ID:
On Sun, Aug 15, 2021 at 5:09 AM Ricardo Signes <>

> Porters,
> Since at least 2009 <>, we
> have been talking, once in a while, about deprecating the use of
> \N{APOSTROPHE} as a package separator, Ada style.
> The following two expressions are equivalent:
> $x::y::z
> $x'y'z
> This mostly goes unnoticed, but the confusion sometimes seeps in at:
> print "This is $user's problem to deal with."
> …which attempts to interpolate $user::s
> This bites experts and new users alike, and while the apostrophe *might*
> be aesthetically pleasing as a package separator, that battle has basically
> been lost.
> I think the next course of action is to see what on CPAN would really
> break if the old package separator was removed.  I predict "very nearly
> nothing."  Then, to add a deprecation warning for when it is used, with a
> drop dead date.  That is, assuming that we don't realize there's some
> reason we really ought not to do this.
> This is a low-value win, but I think it's a win.  Shall we carry on to RFC
> this?
> --
> rjbs

As far as I can tell, all the pain relates to quoted strings. I would argue
we should remove them only there, that would have all the benefits without
actually breaking anything.


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