Closed Isaac-Leonard closed 2 years ago
TypeScript and Rust support unions and enums, so I don't see why BorrowScript wouldn't.
Does rust support discriminated unions like typescript? My rust experience is limited to the earlier bits of the tutorial and extra stuff I've picked up reading about it online. Would the fact that borrowScript is compiled limit the effectiveness / capabilities of union types?
Agreed
TypeScript and Rust support unions and enums, so I don't see why BorrowScript wouldn't.
Do you plan to support union types or only Enums?