3 ms·
Elm enforces this since 2014 at the package manager level. They are able to do this because since the language is pure, the compiler knows if a function's signa
by erikw 6y ago
Elm enforces this since 2014 at the package manager level. They are able to do this because since the language is pure, the compiler knows if a function's signature has changed. If you are changing implementation details that don't affect data transformation, then that would just be a dot release. I haven't actually published an Elm package, but from what I've read this seems like a great setup.
- rabidrat 6y agoFunction signature is only half the battle. The semantics can change without the signature changing. This could be caught by a unit/functional test, but then you'd have to have 100% semantic interface coverage. Which is not quite worth it for most libraries/packages.