4 ms·
Sure but how is that an advantageof Haskell? It seems possible to do the same in any language C++, Java..: a wrapper class which provide an access to a part of
by renox 13y ago
Sure but how is that an advantageof Haskell?
It seems possible to do the same in any language C++, Java..: a wrapper class which provide an access to a part of another class.
- codygman 13y agoI'm no expert, but I believe it's an advantage of Haskell because of the generality and level of abstraction you are capable of while maintaining type safety. I also think I just described Haskell.
- nousernamesleft 13y agoBecause haskell has such a library (a few actually) and ocaml does not. So in ocaml you either have to give up safety, or write a bunch of verbose boilerplate. There's no reason someone couldn't write a lens library for ocaml of course, but the much smaller community makes for far fewer libraries.