Skip to Content.
Sympa Menu

devel - Re: [sympa-developpers] Plans for Sympa

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Guillaume Rousse <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-developpers] Plans for Sympa
  • Date: Mon, 18 Mar 2013 18:18:30 +0100

Le 18/03/2013 16:42, IKEDA Soji a écrit :
As you are working on sympa-cleanup branch, single hash arguments
need not be hash references. Similarly, my example may be rewritten as:

unless (
SDM::do_query q{...},
$arg
) {
...;
}

or

$sth = SDM::do_query(
q{...},
$arg
);
unless ($sth) {
...;
}

I feel they are easier to read even without reformatting.
Absolutly. I'm already migrating most constructs to the second form, enforcing a clear distinction between function call (do something) and error handling (check the result).

--
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




Archive powered by MHonArc 2.6.19+.

Top of Page