[Python-ideas] Improving the expressivity of function annotations

Michael Foord fuzzyman at gmail.com
Mon Apr 4 21:05:56 CEST 2011


On 4 April 2011 20:04, Masklinn <masklinn at masklinn.net> wrote:

> On 2011-04-04, at 20:47 , Michael Foord wrote:
> >
> > It's a standard term for languages like C# and Java, but if you don't use
> > these languages there is no reason you should know it. Generics is a
> > solution (hack - but still an elegant hack) that allows you to write
> > "generic" containers and functions that can work with any types whilst
> still
> > being type safe.
>
> Why do you find generics to be a hack?
>
>
Because with a good dynamic type system they are completely unnecessary.

Michael

-- 

http://www.voidspace.org.uk/

May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110404/14a2f2b2/attachment.html>


More information about the Python-ideas mailing list