When I first got to know the #Z notation #formal method in the early 1980s, I wa...

@AmenZwa@mathstodon.xyz

When I first got to know the #Z notation #formal method in the early 1980s, I was very impressed. In those days, imperative languages like C and Pascal ruled the industrial landscape, and pen-and-paper #programming was still an accepted, nay expected, practice. The Z notation and its emphasis on proof obligations fit well with that paper-borne process of specification and design.

Not long after, I got to know #ML and its Hindley-Milner type system. Thereafter, I was no longer impressed with Z's use of an overtly ceremonial and verbose syntax to describe what I could write just one expression in ML.

This superiority of #FP syntax over Z's bloated notation is even more evident in modern descendants of ML, such as Standard ML, OCaml, Haskell, Agda, Idris, Coq, and Lean.