Hacker News new | ask | show | jobs
by edynoid 2322 days ago
You can get pretty far with a statically typed, purely functional language. For example, Elm's package manager enforces semantic versioning: https://elm-lang.org/

I don't think you can do that with JavaScript.

1 comments

You can always break an API with the values, however much you do with the types.

Its effectiveness also varies with how much and well types are used - e.g. whether you return `String` or `Url` to begin with.