You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Bool type is programming jargon (based on the last name of a logician). I believe it should be renamed to Truth instead, which will be more obvious.
The text was updated successfully, but these errors were encountered:
I find myself wondering how possible this is. If we defined a different type instead of Bool, and then reimplemented ifThenElse from the RebindableSyntax extension, would this apply to guards and pattern matching as well?
If not, we could achieve essentially the same thing using the same approach as Program: define a type synonym, and then postprocess the compiler output to replace all occurrences of Bool with Truth.
The Bool type is programming jargon (based on the last name of a logician). I believe it should be renamed to Truth instead, which will be more obvious.
The text was updated successfully, but these errors were encountered: