News for hackers. Stuff that matters.
Re:Types versus sets in math and programming languages by tromp on Sunday July 25, 2021 @07:20AM (#27948329)
I think calling the type of natural numbers ℕ instead of Natural is causing the confusion. Students would be less tempted to write

{1,2} ⊆ Natural

as the right side looks like a type name rather than a value . Haskell helps to maintain the distinction by using capitals for type names and lower case for variable names.

I would seem natural to write:

    naturals :: Set Natural
    naturals = {0,1..}
    {1,2} ⊆ naturals
Re:Types versus sets in math and programming languages by mjburgess on Sunday July 25, 2021 @10:42AM (#27949497)
You're downvoted, but what you've said is basically the point-of and conclusion-to the article.

`N` denotes a set and `Natural` denotes a type, and one cannot be eliminated to the other in all contexts of use.