4 ms·
I find it so interesting that there is such a huge chasm between "what we know can be done" and "what we do in practice in industry". How can it be that in so
by actionfromafar 4y ago
I find it so interesting that there is such a huge chasm between "what we know can be done" and "what we do in practice in industry".
How can it be that in so many programming languages, adhering to a contract means nothing but "these methods have similar calling signatures" and "I pinky swear I implement the semantics of std::io::Write " ?
Haven't the Ocaml people entered the next metaphysical level of understanding? When they speak of "types" they don't mean "uint32_t" or a class.
- Zababa 4y agoWhat does this have to do with OCaml?
- actionfromafar 4y agoThey seem to operate at much higher level of abstraction. They mean something more profound when they speak of "types", which I don't understand. Also Ada seems interesting, with more spelled out contracts.
- Zababa 4y agoThat depends on the types. You can have something as basic as "int", something a bit more complex like arrays, or something even more complex like GADTs https://v2.ocaml.org/manual/gadts.html https://v2.ocaml.org/manual/gadts.html