Comment

Comment by Animats

I remember when that went into Python. It seemed too cute. There was a lot of that around the Python 3.4, 3.5 era.

The case where all items are the same type is reasonable, but if implicit type conversions are invoked, it gets really complicated. Whatever the types are, Python will probably do something. Just not necessarily what you want.

I could see having this if there was a compile-time constraint that all variables be the same type. That would disallow the bad cases.

parent Animats 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton