Skip to Content.
Sympa Menu

devel - Re: [sympa-developpers] sympatic: OO or not OO ?

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-developpers] sympatic: OO or not OO ?
  • Date: Thu, 15 Mar 2018 16:24:37 +0100

I would agree with that. If Moo is indeed used in the majority of modules, it makes sense to use it as default and explicitly say when it is not needed.

After all, it's only the reverse of previous behaviour.

Regards,

David


On 27/02/2018 13:38, Marc Chantreux wrote:
hello,

somewhere in the autodie thread, racke told us that Moo should be
included by default. this idea made its path in my mind as i was
defending autodie: the whole thing is to try to have the good defaults.
So i come back on it and try to defend the idea of racke (racke please
complete if i miss something important).

* most of the sympa files are objects so we should at least have Moo as
default as racke suggest.
* even if you don't need Moo in your script, Moo will be loaded anyway
by a dependency so there is no reduction of startup time or memory
consumption.
* Moo comes with few keywords we probably should avoid in other contexts
(has, extends, ...)

so i finally join the racke proposition

use Sympatic;

should use Moo and MooX::*

use Sympatic -noo; # no oo

can become the current behaviour in the very rare cases you want to
avoid Moo.

regards
marc

--
"Mieux vaut viser la perfection et la rater que viser la médiocrité et
l'atteindre."
- Francis Blanche


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.19+.

Top of Page