▲ | ffsm8 2 days ago | ||||||||||||||||||||||||||||||||||
The difficulty of Making illegal state unrepresentable depends entirely on the domain you're working on. And whether discarding the occasional invalid transaction is viable. If you're writing a CMS/wiki software, it's gonna be pretty straightforward to do. If you're working with transactions, trades, contracts etc, it's not. | |||||||||||||||||||||||||||||||||||
▲ | fuzztester 2 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||
>If you're writing a CMS/wiki software, it's gonna be pretty straightforward to do. >If you're working with transactions, trades, contracts etc, it's not. why not? what's the difference between those two categories, mentioned in your last two sentences, as far as this argument about illegal states is concerned? not clear to me. in fact, just a few weeks ago, I saw a video by yaron minsky of jane street about ocaml. the title of it might have been "why ocaml". I know he has a video by that name. just not sure whether that was the one I saw or another one by him. it can easily be googled. in that video, he talks a fair amount about how jane street uses ocaml, including on how they use it (including defining types for kinds of business domain data, iirc) to make "invalid states unrepresentable" - in fact, iirc, that was the title of one of the slides of his talk. i remember that very well because i was kind of impressed by the idea, although i have not checked it out practically myself yet. but I don't know much about this area, so I'm not saying that either he or you are wrong. just asking for clarification / explanation. also, trades and transactions seems to be the main area that jane street works in. edited for spelling/wrong autocorrect: s/one I show/one I saw/ | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
▲ | FridgeSeal 2 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||
> If you're working with transactions, trades, contracts etc, it's not. I don’t mean to rain on your parade here, but there’s quite a few high powered orgs in the finance world that are well known for making extensive use of functional languages. Jane St is the most famous example but it’s not the only one. Standard Chartered Bank uses a lot of Haskell, as does Barclays and Bank of America. | |||||||||||||||||||||||||||||||||||
|