develooper Front page | perl.perl6.internals | Postings from April 2008

Re: [perl #53270] [TODO] Rename/refactor _handle_mswin32()

Thread Previous | Thread Next
From:
Geoffrey Broadwell
Date:
April 25, 2008 09:45
Subject:
Re: [perl #53270] [TODO] Rename/refactor _handle_mswin32()
On Fri, 2008-04-25 at 09:39 -0700, jerry gay wrote:
> On Fri, Apr 25, 2008 at 8:38 AM, Geoffrey Broadwell <geoff@broadwell.org> wrote:
> >  (Subtle note -- the || really wants to be //, but as I recall we're not
> >  allowed to assume that // is there yet.)
> >
> correct, parrot depends on perl 5.8, so we can't rely on //.
> 
> so i strongly suggest you use the idiomatic (however verbose) perl5 equivalent:
>     defined $foo ? $foo : $default
> correctness++

Fair enough.  Please remember that the version of the sub I put up was
freehanded -- I was trying to make a point about making its API and
internals cleaner, not replace James Keenan's patch.

Unfortunately, I think my overall point was lost in the details.  :-(


-'f



Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About