I'm still trying to figure out how to do user pattern matching.
An interesting special case just arose. I wrote this:
var a, b = f x;
d = g b;
Basically, this is a pattern match splitting a tuple value into two bits,
then I want to apply a function to one of the variables to get another.
I *should* be able to do this "in place" in the pattern.
Patterns are inverted applications, in the sense that an application takes
a value and constructs another, a pattern takes a value and rips it apart.
So I want to write something lie:
var a, d = g * = f x;
where the * is where the second component of f x would "land".
--
john skaller
[email protected]
http://felix-lang.org
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language