develooper Front page | perl.perl5.porters | Postings from September 2011

Re: [rt.cpan.org #70622] Versions Disappear

Thread Previous | Thread Next
From:
David E. Wheeler
Date:
September 5, 2011 11:45
Subject:
Re: [rt.cpan.org #70622] Versions Disappear
Message ID:
A0BE72AC-D276-4513-AE94-4CEDF369A13C@kineticode.com
On Sep 4, 2011, at 9:18 PM, David Golden wrote:

>> I think if I had noticed this thread before I would have argued with David Golden about this point. It seems to me that a version object is far more useful in general than whatever crap happened to be put into $VERSION -- and the latter can be fetched directly, anyway.
> 
> Version objects are far more useful to others who consume $VERSION,
> but module authors may reasonable expect $VERSION not to be modified
> from outside their own code.  That was the crux of my argument and
> I'll stick with it, annoyances as you cite to the contrary.

It seems to me that if you want the original $VERSION, you fetch $Foo::VERSION. Foo->VERSION can meanwhile return a VERSION object. Used to be you could get one or the other, but now you get the same thing from both sources. I find that annoying and, frankly, less useful.

Best,

David


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