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

Re: removing the old-style package separator

Thread Previous | Thread Next
From:
Dan Book
Date:
August 15, 2021 04:12
Subject:
Re: removing the old-style package separator
Message ID:
CABMkAVXdqN3H6PPFGfCoVVz7zgc56u3jz6qbk6P0OmZxexSQoQ@mail.gmail.com
On Sun, Aug 15, 2021 at 12:07 AM Uri Guttman <uri@stemsystems.com> wrote:

> On 8/14/21 11:08 PM, Ricardo Signes wrote:
>
> Porters,
>
> Since at least 2009 <http://markmail.org/message/gaux5xx5jlop3vmk>, 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
>
>
> while i totally agree with this, there are some modules with the name d'oh
> in them!
>
>   use D <https://metacpan.org/pod/D>'oh 'i_hate_this_program';
>     D'oh::stderr('/tmp/stderr'); # redirect all stderr to /tmp/stderr
>
>
> D'oh::Year <https://metacpan.org/pod/D'oh::Year> - Catch stupid mistakes
> when mucking with years, like Y2K bugs
>
>
> and both seem to do something real and are not in acme::
>

Test::More::isn't is another example of this; but in both cases a
slightly less cute version is perfectly usable without this feature, so I
don't find it a compelling reason against the downsides.

-Dan

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