3 ms·
This is a nice insight into Reason's handling of sum types. Here's the Reason code as we'd typically write it: let needsCancelButton = fun | LoadingScr
by yawaramin 9y ago
This is a nice insight into Reason's handling of sum types. Here's the Reason code as we'd typically write it:
let needsCancelButton = fun
| LoadingScreen | CodeEntryScreen => true
| SuccessScreen => false
};