by scrollaway · 7y ago · 0 comments
- Imports everywhere. Even basic types (list, dict, set) have to be imported
- Basic types don't share the same casing as the actual types they represent (Set vs set, Dict vs dict, List vs list)
- Awful support for enums.
- Syntax is generally ugly. Typescript got everything right; it's intuitive, clear, and scales pretty well even for complex types. I'd be happy if they just copied typescript syntax.
- Types have a runtime impact.
Althought now annotations don't have a runtime cost anymore since the y are lazily evaluated.
Reading and writing types should be fast, agile, easy and effortless. Only way to acheive that is having it as close the usage as possible
Do you mind expanding on this, and what could be done differently?
x: float = 1.0
instantiate?