3 ms·
It certainly inherits a lot from that culture but there's a fast-growing number of industry programmers using Haskell that are bringing more approachable styles
by Ixiaus 10y ago
It certainly inherits a lot from that culture but there's a fast-growing number of industry programmers using Haskell that are bringing more approachable styles to the language; most notably: using partial functions as little as possible, using let bindings more often, using applicative-do, making variables names a bit more descriptive when it makes the waters clearer, using descriptive data type names, documenting the fields of records, documenting the arguments to a function if the types don't make it crystal clear, etc.
- zzleeper 10y agoIs there a style guide for that? Looks incredibly useful (i.e. a Haskell pep8)
- mrkgnao 10y agohttps://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md https://github.com/tibbe/haskell-style-guide/blob/master/has...
- girvo 10y agoInterestingly, what you've described sounds a lot like most of the OCaml I've come across (and written). I suppose that makes sense, really!
- fmap 10y agoThat's a relief. All the OCaml that I've seen has been a horrible mess of single character identifiers without comments or type annotations...