Open anchpop opened 2 years ago
@Zett98 It doesn't need to be, it could be its own type, but unit is isomorphic to an empty record, no?
@Zett98 It doesn't need to be, it could be its own type, but unit is isomorphic to an empty record, no?
i haven't thought about it this way. I thought that with explicit Unit variant we would have an unboxed int representing this type, but with empty record we will have block with an int param, but that probably shouldn't matter
why Unit type is represented as empty record?