339
What are your programming hot takes?
(lemmy.ml)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
How is dynamic typinf faster? Is typing
num = 1
instead ofint num = 1
really that much faster?Plus, most statically typed languages either do type inference by default or let you opt in somehow.
Even Java, which is probably the reason everyone hated static typing for the first decade of the century or so, now has
var
.It's not just the physical typing
It's the fact that you can be extremely flexible with data structures and variables
E.g. you can have a list of strings and ints in Python but not java
This is why union types are great (also sum types are similar I think, never used those)