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

Re: [ #70622] Versions Disappear

Thread Previous | Thread Next
David E. Wheeler
September 5, 2011 11:45
Re: [ #70622] Versions Disappear
Message ID:
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.



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