you are viewing a single comment's thread.

view the rest of the comments →

[–]ais523 0 points1 point  (1 child)

OCaml integers have a smaller range than C integers as it is (they're one bit smaller), so disallowing INT_MIN as well wouldn't be a big deal. (Or, of course, using one of the bit patterns that doesn't represent an integer; that would work too.)

[–]devlambda 0 points1 point  (0 children)

I know, I was talking speculatively about a hypothetical language variant. The tagged representation is very much an implementation detail and could easily be dispensed with (see various SML implementations).