Hacker News new | ask | show | jobs
by cygx 2595 days ago
Static types avoid the cost of runtime type checks and dynamic dispatch.
1 comments

Also they permit more inlining opportunities, allow eliminating more dead code, and more. Types almost always improve program performance.