Re:Do Python developers want static typing?
by EdwardDiego on Saturday February 27, 2021 @08:09PM
(#26289744)
FWIW Scala can do structural typing like Typescript, but it has a slight performance impact due to using reflection so is generally avoided.
Compile time structural typing like approaches tend to use typeclasses and implicits. Bit more boilerplate, but no runtime hit or risk of failure if reflection access is denied by the JVM security manager.
Compile time structural typing like approaches tend to use typeclasses and implicits. Bit more boilerplate, but no runtime hit or risk of failure if reflection access is denied by the JVM security manager.