[Esug-list] Nested Degenerate Convenience Methods
jplists at metaprog.com
Thu Apr 2 01:14:50 EDT 2015
I agree with Andres about calling it a convenience method (and also not
calling it a pattern), but is this not also an example of currying?
On 02.04.15 00:49, Andres Valloud wrote:
> I would call that code an example of "convenience methods". In C, those
> things would likely be implemented in terms of "macros". The term
> "pattern" is overloaded, I wouldn't use it here.
> On 4/1/15 9:49 , Sean P. DeNigris wrote:
>> Is there a name for the following pattern?
>> doSomething: arg1
>> ^ self doSomething: arg1 ifA: arg2Default
>> doSomething: arg1 ifA: arg2
>> ^ self doSomething: arg1 ifA: arg2 ifB: arg3Default
>> View this message in context:
>> Sent from the ESUG mailing list archive at Nabble.com.
>> Esug-list mailing list
>> Esug-list at lists.esug.org
> Esug-list mailing list
> Esug-list at lists.esug.org
Joseph Pelrine [ | ]
Email: jpelrine at metaprog.com
As soon as you introduce people, things become complex.
More information about the Esug-list