Python is DOOMED! Again!

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Jan 23 07:33:40 CET 2015


On 23/01/2015 00:44, Sturla Molden wrote:
> On 22/01/15 23:08, Ian Kelly wrote:
>
>> T = TypeVar('T')
>>
>> def adder(a: T, b: T) -> T:
>>      return a + b
>>
>> I'm not thrilled about having to actually declare T in this sort of
>> situation, but I don't have a better proposal.
>
> Here is a better proposal:
>
> def adder(a, b):
>      return a + b
>

All those wasted characters?

What is wrong with:-

def adder(a, b): return a + b ? :)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list