▲ | eru 11 hours ago | |
> This is the beauty of ocaml (and strongly typed functional languages more broadly) I don't think that's anything specific to strongly typed functional languages. In eg Rust even the standard library relies on third party crates. Though it is still somewhat amusing to me that loops in Haskell are delivered via a third party library, if you ever actually want them. See https://hackage.haskell.org/package/monad-loops-0.4.3/docs/C... I do agree that it's good language design, if you can deliver what would be core functionality via a library. Whether you want to integrate that library into the standard library or not is an independent question of culture and convenience. (Eg Python does quite well with its batteries-included approach, but if they had better dependency management, using third party libraries wouldn't be so bad. It works well in eg Rust and Haskell.) |