ref: 2913e5d1771ce09dd906eda0f3baaf97830cb18d
parent: 762cc86bee0020fac7636e6a2cc662a8dc200616
author: Ori Bernstein <[email protected]>
date: Sat May 31 12:59:33 EDT 2014
Add 'result' type. I never really liked the 'error' type's name: Add a new type as part of renaming. 'error' will be removed when I port the code that depends on it.
--- /dev/null
+++ b/libstd/result.myr
@@ -1,0 +1,9 @@
+use "die.use"
+
+pkg std =
+ type error(@a, @b) = union
+ `Ok @a
+ `Fail @b
+ ;;
+;;
+