DEV Community

Discussion on: Designing an OOP System

Collapse
 
thibaultduponchelle profile image
Tib • Edited

Maybe a matter of taste, but I'm intrigued to see these overrides in CAPS... I see it's phasers not methods but I'm just questioning the convention ("eye candyness") as somebody having never used Moo/se but OOP in other languages.

Collapse
 
ovid profile image
Ovid

These upper-case phasers (CONSTRUCT, ADJUST, and DESTRUCT) follow the existing Perl conventions for BEGIN, UNITCHECK, CHECK, INIT, and END. However, these new phasers are for different phases of object construction rather than the program itself.

Collapse
 
thibaultduponchelle profile image
Tib

Good point 👍