The Clojure implementation is ~3 times smaller as compared to Haskell and Scala. Now imagine you need to contribute a new feature, fix a bug, or the maintainers abandoned the lib and you need to fork it yourself for continued support?
Or imagine you were the one wanting to create such an API for yourself or others?
LOC isn't necessarily the greatest measure of code complexity, but it is definitely one factor to consider.
I would be a bit careful there. I, for one, have not done a deep analysis of these libraries to verify whether they are at feature parity. Comparing LOC is always a bit tricky, especially across languages, but it can get pretty meaningless if the feature set is not the same.
8
u/didibus Aug 31 '21
It's good to look at the libraries from a user point of view, but also if you look at the library from a maintainer point of view:
Source: https://codetabs.com/count-loc/count-loc-online.html
The Clojure implementation is ~3 times smaller as compared to Haskell and Scala. Now imagine you need to contribute a new feature, fix a bug, or the maintainers abandoned the lib and you need to fork it yourself for continued support?
Or imagine you were the one wanting to create such an API for yourself or others?
LOC isn't necessarily the greatest measure of code complexity, but it is definitely one factor to consider.