Re: version-0.77 and You

demerphq <[email protected]>
Newsgroups gmane.comp.lang.perl.perl5.porters,gmane.comp.lang.perl.modules.module-build
Message-ID <[email protected]>
2009/7/15 David Golden <[email protected]>:
> On Wed, Jul 15, 2009 at 5:50 PM, Gisle Aas<[email protected]> wrote:
>> We obviously disagree about what makes code readable.
>
> Let me rephrase -- I think putting "use version" last means it's more
> likely that someone will inadvertently leave it off.  Putting it first
> indicates that it's an important precursor, which it is.
>
> I'm not wedded to one or the other formulation.
>
>>   our $VERSION = do { use version 1.00; version->declare("v1.2.3") };
>
> I almost hate to say it, but I actually kind of like that.  It's
> really, really clear in the intent.

Maybe we could have a 'this_is_version".

So then we can say:

use this_is_version "v1.2.3";

and not have to do all that formulaic stuff. IOW, this would be equivalent to:

use vars /$VERSION/;
use version 1.00; # or whatever is appropriate
version->declare("v1.23");

Oh, i see, EUMM. Oops.

There is something disturbing around the fact that we are hacking
around a one line code parser here.

Well, whatever,
yves



-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.