[Python-ideas] Optional static typing -- the crossroads

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Aug 16 00:51:38 CEST 2014


Łukasz Langa wrote:
> I’m also not a fan of the square brackets for generics (those brackets 
> mean lookup!) but a BDFL once said that “language evolution is the art 
> of compromise” and one cannot disagree with that.

I think there's sufficient precedent in other languages
to justify using square brackets that way. I much prefer
them over the angle brackets of C++ and Java, which are
ugly to my eyes and make the code hard to read. They
also make parsing tricky if you have "<<" and ">>"
operators.

-- 
Greg


More information about the Python-ideas mailing list