What’s wrong with the syntax? It’s just var_name:Type= value, it’s very similar to Go or Rust. Things get a little wonky with generics (list[Type] or dict[Type]), but it’s still similar to other languages.
One nice thing about it being runtime checked is you can accept union types, deffunc(param: int | float), which isn’t very common in statically typed languages.
What’s wrong with the syntax? It’s just
var_name: Type = value
, it’s very similar to Go or Rust. Things get a little wonky with generics (list[Type]
ordict[Type]
), but it’s still similar to other languages.One nice thing about it being runtime checked is you can accept union types,
def func(param: int | float)
, which isn’t very common in statically typed languages.