develooper Front page | perl.perl5.porters | Postings from February 2013

Re: perlopentut modernization

Thread Previous | Thread Next
From:
Lukas Mai
Date:
February 14, 2013 09:56
Subject:
Re: perlopentut modernization
Message ID:
511CB4CB.7010802@web.de
On 14.02.2013 09:43, Alexander Hartmaier wrote:
> Thanks for reviewing Ricardo!
>
> On Thu, Feb 14, 2013 at 3:51 AM, Ricardo Signes
> <perl.p5p@rjbs.manxome.org <mailto:perl.p5p@rjbs.manxome.org>> wrote:
>
>     * Alexander Hartmaier <alex.hartmaier@gmail.com
>     <mailto:alex.hartmaier@gmail.com>> [2013-01-19T06:54:56]
>      > ...
>
>     Sorry for the delay.  I'm finally reviewing!
>
>     This is a sort of random collection of reactions.  Sorry for any
>     confusion to
>     my thoughts.
>
>     special variable C<$!>  -- should link to perlvar, since $! is a bit
>     weird
>
> I was thinking about even use-ing English and its $OS_ERROR  (or
> $ERRNO), what do you think about that?

I think that's a bad idea:

- 'use English "-no_match_vars";' is too ugly to put in programs.
- I know what $! is. I don't know what $OS_ERROR is or where it comes 
from.[0] I suspect most Perl programmers are more familiar with the real 
variables ($!, $0, $$, ...) than with their "readable" English aliases.

Or maybe I'm in the minority, but I really think English.pm makes code 
less readable.


[0] In fact, I had to check perlvar to make sure it wasn't $^E (a.k.a. 
$EXTENDED_OS_ERROR).

-- 
Lukas Mai <l.mai@web.de>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About