develooper Front page | perl.perl5.porters | Postings from December 2016

Re: File::Find on WSL

Thread Previous | Thread Next
Kent Fredric
December 4, 2016 13:10
Re: File::Find on WSL
Message ID:
On 4 December 2016 at 17:23, Thorsten Behrens <> wrote:
> Ø  do you want that to be a warn or a die? i would call die as that means
> the $^O is misleading or something made /proc/version disappear. a warning
> does little good there as the typical caller of file::find won't understand
> what is wrong.
> Good question on the die. I think that could be argued either way, but yes,
> /proc/version being gone would be pretty dire, so – sure. I’ll suggest it to
> the perl maintainers over at Ubuntu with the changes you recommend, which
> makes it:

Wouldn't it make more sense to, instead of dying, warn, and simply assume
its not safe to use the nlink optimisation, and set it off?

At least that way the only downside is that things will run slower than usual
on a system that *may* support nlink.

Slow-but-correct is a good compromise between "fast-but-wrong" and "unusuable"



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