Quantcast
Channel: Active questions tagged ocaml - Stack Overflow
Viewing all articles
Browse latest Browse all 527

What is the safe and idiomatic way to check if two records (and two types in general) are equal in OCaml?

$
0
0

It seems like the codebase I'm working on complains if I'm using = or <> to check equality or inequality of two types that are not int types.

I assume this was disabled so that I can't do the wrong thing. If this is true, what is the right way to check (deep) equality between two records?


Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>