News for hackers. Stuff that matters.
Re:Untyped Programs Don’t Exist by smadge on Friday December 07, 2018 @12:00AM (#18625259)
What is "the type that consists of integers above N?" If N = -1, then 0 is in the set of integers greater than N.

I think it makes more sense to say that division is a function F × (F - {0}) → F where F is a field. F is not the same set/type as F without 0. I think in the context of computer languages this would be called a refinement type. (https://en.wikipedia.org/wiki/Refinement_type)

There are no comments on this comment yet.