Hacker News new | ask | show | jobs
by leshow 2855 days ago
Your comparison doesn't make any sense. You would use a language like Elm/Purescript/Reason etc for the type safety, that's completely orthogonal to whether something has classes or not.
1 comments

Except you don’t need typesafety when you do this because you’re never expecting a specific type, and at the same time, you don’t have to waste time writing the recipe for what you’re going to do.
You're always expecting a specific type, whether the type or schema is made explicit by the language or not.