There is a saying: avoid asymmetry
we have
extended <-> included extend_object <-> "append_features"
symmetry would be nice in ruby2
I bet the asymmetry confuses more than it helps. Besides that super must be invoked.
See [].
See the rest of the thread on ruby-talk; it's already gone past this point. Matz indicated he would rather remove extend_object and append_features. I made the point that "extended" and "included" is itself a false symmetry, because the object gets extended while the module gets included. So to have them both be used as verbs from the module perspective is wrong. The symmetrical version would be something like "included" and "extending".
(Matz hasn't responded to my point yet :-)
Keep in mind that symmetry can be conceptual; it doesn't have to mean that the words look the same. Also, it's not a law; it's just one of many design principles.
-- David Black
Its a shame good messages gets lost this way.
-- Simon Strandgaard
Back to RCRchive.
RCR Submission page and RCRchive powered by Ruby, Apache, RuWiki (modified), and RubLog