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

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

Thread Previous | Thread Next
From:
demerphq
Date:
July 19, 2009 02:48
Subject:
Re: Deprecating ' as a package separator [Another overdue deprecation]
Message ID:
9b18b3110907190247p5214d5b9n50b222c7e2e6ecd9@mail.gmail.com
2009/7/19 Ben Evans <benjamin.john.evans@googlemail.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.

Hear hear.

Im fully in favour of losing the apostrophe notation.

Yves




-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

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