[Esug-list] Nested Degenerate Convenience Methods

Andres Valloud avalloud at smalltalk.comcastbiz.net
Wed Apr 1 18:49:57 EDT 2015


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
>
>
>
> -----
> Cheers,
> Sean
> --
> View this message in context: http://forum.world.st/Nested-Degenerate-Convenience-Methods-tp4816719.html
> Sent from the ESUG mailing list archive at Nabble.com.
>
> _______________________________________________
> Esug-list mailing list
> Esug-list at lists.esug.org
> http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org
>




More information about the Esug-list mailing list