2009/7/15 David Golden <xda...@gmail.com>:
> On Wed, Jul 15, 2009 at 5:50 PM, Gisle Aas<gi...@activestate.com> 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/"

Reply via email to