Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type t = x | y | z
- let tmp1 = x
- let tmp2 = y
- let tmp3 = z
- // vs
- enum t {x, y, z};
- var tmp1 = t.x
- var tmp2 = t.y
- var tmp3 = t.z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement