[PEAK] generic function signature changes
Simon Belak
simon.belak at hruska.si
Thu Jun 15 14:54:25 EDT 2006
You can always try making a compatibility layer with combinators (around
or method chaining).
In this respect GF are more flexible than the default Python implementation.
Cheers,
Simon
Kevin Dangoor wrote:
> But you can't change the signature of the generic function itself. I'm
> thinking in terms of the evolution of the app over time.
>
> On 6/15/06, Simon Belak <simon.belak at hruska.si> wrote:
>> I don't think so:
>>
>> from dispatch import generic
>>
>> @generic()
>> def foo(bar):
>
> ^^^^^^^^^^^^^^^^^^^^^^^^
> Try adding a new keyword parameter here.
>
> Kevin
>
More information about the PEAK
mailing list