Conversation

what's the best writing on contracts? what are the best systems to study, what is the state of the art? is the clojure thing any better than anything else?
1
2
I'm working on an essay about this right now, actually. Short of it is that there isn't a whole lot of writing outside of early Eiffel euphoria, which is unfortunate. But clojure isn't close to the cutting edge.
4
7
I'm trying to write about both. I'm also trying to focus on languages which include contracts as part of the language syntax, with the exception of racket and clojure (which laugh at the concept of language syntax)
2
1
Modern-day, I'd make sure you at least mention FStar. I think it's kinda cutting edge in the "Hoare logic discharged by SMT" family. There's some interesting stuff around predicate transformer semantics in there, so-called Dijkstra Monads.
1
5
It is both. As with many dependent typed systems, it uses dependent types to encode a Hoare-logic-like weakest-precondition system for a set of its terms that model imperative/stateful code (monadically, in FStar's case). Then sends those to z3.
1
5