I thought I recall one of the talks I've seen on Roc mentioned that Bool was just a tag union of [True, False]. But it seems now it's a special type with values Bool.true
and Bool.false
. Am I misremembering, or did that change?
Yes, that changed, that was a couple of years ago I believe
It is still a tag union under the hood :)
oh, why not have it be a tag union publicly?
Good question, I do not remember :sweat_smile: perhaps it was to discourage the use of bools and encourage tags with a nice name
Last updated: Jul 06 2025 at 12:14 UTC