by mafribe · 9y ago · 0 comments
Reading this code is probably most enlightening if you have already written networking protocols.
NB: this has nothing to do with OCaml, other comparable languages with ADTs (Scala, Rust, Haskell, F#) would be similarly suitable.
[1] https://github.com/mirage/mirage-tcpip
[2] https://github.com/mirage/mirage-tcpip/blob/master/lib/tcp/s...
Don't know OCaml but am learning Rust and I see what you mean about the universality of how types make this possible.
Thanks for pointing this out.
I've been looking for something beyond basic tutorial apps to get a real feel for OCaml.