logoalt Hacker News

gethlyyesterday at 3:54 PM1 replyview on HN

ocaml looks more like a spec than actual code.


Replies

beckfordyesterday at 4:25 PM

If you were looking at the parse link in the author's comment, you were looking at a spec (called a module interface in OCaml/OxCaml, similar to an interface in Java). The parse implementation is at https://github.com/avsm/httpz/blob/240051dd5f00281b09984a14a...

That said, I would be happy if all I needed to type in was a spec.