Re: [Module::Build] PERL_MM_USE_DEFAULT
Status: Beta
Brought to you by:
kwilliams
|
From: Randy W. S. <ml...@th...> - 2006-04-06 17:47:49
|
Yitzchak Scott-Thoennes wrote:
> On Thu, Apr 06, 2006 at 07:05:19AM -0400, Randy W. Sims wrote:
>
>>Yitzchak Scott-Thoennes wrote:
>>
>>>On Tue, Mar 07, 2006 at 05:33:49AM -0500, Randy W. Sims wrote:
>>>
>>>
>>>>Sorry for responding late to this, but won't this break exististing
>>>>distributions? Distros that currently use y_n() without defaults will
>>>>start die-ing when users upgrade M::B.
>>
>>>It doesn't break them in the sense that they were already broken for some
>>>users. But maybe it would be better to pick an arbitrary default?
>>
>>I don't think there is a reasonable default.
>
>
> That's why I suggested an arbitrary one :)
>
>
>>I think the only way around
>>the issue is to create new methods and deprecate the older ones or not
>>require defaults.
>
>
> If you have a deprecated y_n method and replacements with longer names,
> people will continue to use y_n :(
>
>
>>It's not reasonable to have Build scripts failing just
>>because a user upgrades to a new version of Module::Build.
>>
>>This needs to be resolved before 0.28. Any other ideas for solutions?
>
>
> I'll try to come up with one or more suggestions.
$builder->ask( prompt => "Do you want to continue?",
options => ['&yes' '&no' 'may&be'],
default => 'b',
);
> Do you want to continue? (Yes/No/mayBe) [b]
$builder->ask( prompt => "Enter your user name:",
options => [],
default => 'guest'
);
> Enter your username: [guest]
$builder->ask( prompt => "Enter your user name:",
options => [],
default => 'guest',
hide_default => 1,
);
> Enter your username:
or Something like that ?
Randy.
|