A common misconception is that type annotations makes your program run faster. It’s false. It makes your compiler run faster. It provides *less* information than inference so, if a compiler relies on it, it probably makes it run *slower* than it could be with inference.
-
-
It can but the annotations isn’t what gave you the speed in that case. I’m only addressing the misconception that adding more of them will make your code faster. Guards could in theory help locally, but obviously worse overall than knowing them statically.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 