4 ms·
This is my point precisely: it looks like a static type declaration to anybody who has seen what a static type declaration looks like in any statically or gradu
by reikonomusha 5y ago
This is my point precisely: it looks like a static type declaration to anybody who has seen what a static type declaration looks like in any statically or gradually typed program in the last 50 years.
But in Python, it's not (and documented in a PEP as not), and it causes massive confusion.
- heavyset_go 5y agoThat's the way it works in Ruby with RBS, and it will work the same way in JavaScript should Microsoft's proposal for type hints make it into ECMAScript[1]. [1] https://devblogs.microsoft.com/typescript/a-proposal-for-type-syntax-in-javascript/ https://devblogs.microsoft.com/typescript/a-proposal-for-typ...