by karparov · 1y ago · 0 comments
While types can be used for that, they are a much broader concept.
I would say the general purpose of types is to tell apples from oranges.
Having types helps the IDE help YOU! That’s my favorite part about types and a strong IDE like Webstorm or IntelliJ. I agree it’s not a substitute for proper testing though.