2 ms·
Method combinatory are a powerful mechanism I’ve missed since I stopped using flavors. Objective-C had a partial implementation via run_super (an idea inherite
by gumby 7y ago
Method combinatory are a powerful mechanism I’ve missed since I stopped using flavors.
Objective-C had a partial implementation via run_super (an idea inherited from Smalltalk I believe, but can’t remember) which gave you control of before and after behavior, but was backwards in that you had to code it explicitly as opposed to having your mixin provide an addendum or suffix. This violated abstraction and encapsulation.
Also, combinators other than :before and :after often led to spaghetti code. I used :progn (useful!) and :or and :and (:or was in particular quite finicky) which allowed my users a lot of power and flexibility but mostly allowed them, from confusion, to mess up their own code. I don’t remember if these constructs survived into CLOS.
by the was these terms come from isle cream. There was a popular ice cream place called “Emac & Bilio” often referred to as Emac’s. So once there was an Emacs editor, naturally there was a typesetting package called Bolio, the “flavors” system’s standard base class was si:vanilla-flavor, and of course mixins from the practice of mixing in sprinkles, crushed cookies etc (as opposed to just using them as toppings)