logoalt Hacker News

bonesss • today at 8:14 AM • 1 reply • view on HN

I feel many, if not most, of these arguments basically reduce to some variant of “use Haskell/OCaml with spec-style tests”.

Exhaustiveness guarantees, compiler verification and feedback, powerful language features to create high-level domain syntax and languages, pure functions commonly used, and specifications/tests that can be read aloud in English and understood by domain experts… they’re even token efficient.


Replies

ChicagoDave • today at 12:23 PM

Having just designed and built a new modeling DSL for interactive fiction I can tell you that the ‘exhaustive’ part is infinite recursion.

There will always be another use case.

Maybe something like Lean can be achieved, but constructing software in relation to a business model is vastly more complex than math.

We wouldn’t have Lean. We’d have Lean for every domain with variations for every business.