Subject: Developers of Sympa
List archive
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables
- From: Guillaume Rousse <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables
- Date: Mon, 03 Mar 2014 16:22:32 +0100
Le 03/03/2014 04:04, IKEDA Soji a écrit :
Hi,OK for me. Actually, I didn't even realized the had aliases, I'm myself biased.
For example someones can prefer to $!, OTOH others $ERRNO or
$OS_ERROR.
I feel nice to use English names for rarely used variables.
However, what means "rarely used" may be differ from one another.
So I'll propose as below ---
A) $_ and @_ :
Use non-English names everytime.
Never use $ARG and @ARG.
B) Other variables "mnemonic" of them are described in perlvar(1) :I disagree: why should we allow both forms to coexist ? What would we gain ?
May use English names along with non-English names, however, if
multiple English names are given, only shortest one may be used.
e.g. $! and $ERRNO may be used but not $OS_ERROR.
Anyone shouldn't blame use of $ERRNO and others shouldn't blame
use of $!.
Other examples (imcomplete):Better advice: get rid of it completly, because of performance impact.
$" $$ $( $) $0 $; $< $> $& $` $' $+ $, $. $/ $\ $| $! $? $@
C) Others :
Use English names if any.
e.g. Use %LAST_MATCH_START but not %-.
--
e.g. We use $^M, because there are no English alternatives.
e.g. We use $], because some versions of Perl don't have
$OLD_PERL_VERSION.
Guillaume Rousse
INRIA, Direction des systèmes d'information
Domaine de Voluceau
Rocquencourt - BP 105
78153 Le Chesnay
Tel: 01 39 63 58 31
Attachment:
smime.p7s
Description: Signature cryptographique S/MIME
-
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables,
IKEDA Soji, 03/03/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables,
Guillaume Rousse, 03/03/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables,
IKEDA Soji, 03/03/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables,
Guillaume Rousse, 03/03/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables,
IKEDA Soji, 03/03/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables,
Guillaume Rousse, 03/03/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables,
IKEDA Soji, 03/04/2014
- Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables, IKEDA Soji, 03/04/2014
- Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables, Marc Chantreux, 03/04/2014
- Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables, IKEDA Soji, 03/04/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables,
IKEDA Soji, 03/04/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables,
Guillaume Rousse, 03/03/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables,
IKEDA Soji, 03/03/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables,
Guillaume Rousse, 03/03/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables,
IKEDA Soji, 03/03/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[10314] trunk/src: [dev] use plain english names for magic variables,
Guillaume Rousse, 03/03/2014
Archive powered by MHonArc 2.6.19+.