shithub: mc

Download patch

ref: 053f240f3955c801accece839039813f0fea64c0
parent: 2d65d0a17fc82b22730254ad1fa05c1913452c9e
author: Ori Bernstein <[email protected]>
date: Mon Aug 12 11:39:41 EDT 2013

Remove problematic function.

--- a/libstd/error.myr
+++ b/libstd/error.myr
@@ -1,19 +1,9 @@
-pkg std =
-	type error(@a, @b)
+use "die.use"
 
-	generic try	: (val : error(@a, byte[:]) -> void)
+pkg std =
+	type error(@a, @b) = union
+		`Success	@a
+		`Failure	@b
+	;;
 ;;
 
-type error(@a, @b) = union
-	`Success	@a
-	`Failure	@b
-;;
-
-generic try = {val
-	/*
-	match val
-		`Success v:	-> v;;
-		`Failure msg:	die(msg);;
-	;;
-	*/
-}