2 ms·
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 righ
by tromp 5y ago
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
- mjburgess 5y agoYou'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.