develooper Front page | perl.perl5.porters | Postings from July 2009

Re: Deprecating ' as a package separator [Another overdue deprecation]

Thread Previous | Thread Next
From:
Ben Evans
Date:
July 19, 2009 02:32
Subject:
Re: Deprecating ' as a package separator [Another overdue deprecation]
Message ID:
38a53eb30907190232p2c04d47dm24bb9444273fe034@mail.gmail.com
On Sat, Jul 18, 2009 at 11:29 PM, Paul Fenwick <pjf@perltraining.com.au>wrote:

> Michael G Schwern wrote:
>
> > Name "name::s" used only once: possible typo at - line 3.
> > Use of uninitialized value $name::s in concatenation (.) or string at -
> line 3.
> >
> > Its interesting.  In my experience I've never seen a newbie do that... or
> done
> > it myself either.  Have you?
>
> All the time, both for myself personally, and for newbies, and working with
> newbies is my job.
>
> I agree with Yves that its usage in strings at least should be considered
> for deprecation.  Despite me having code written in Klingon, I'd be happy
> to
> see it gone entirely.


I think that creating yet another special case (not allowed in strings,
allowed in other contexts) is a mistake.

I would much rather just kill it altogether.

I also don't buy the "we can't change the code - even a simplifying change
could risk introducing new bugs" argument. By that reasoning, we'll never
change anything ever again - and I also really don't like the thought that
there are parts of the codebase that we're afraid to change.

Ben


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