#11: fold "regmatch", "reglex", "typecase", and "typematch" into "match"
-------------------------+--------------------------------------------------
Reporter: erickt | Owner:
Type: enhancement | Status: new
Priority: major | Milestone:
Component: syntax | Version:
Keywords: |
-------------------------+--------------------------------------------------
Each presents roughly the same interface to the user, so it'd be nice if
we could just reduce them down to one keyword.
from skaller:
Regmatch/reglex are possible but not entirely simple.
Typematch could probably be replaced by match right now, since types
already use the same syntax as expressions.
There's a case for a hybrid though:
{{{
typecase int with
| int => 1
| long => 2
...
}}}
i.e. matching a type but returning an executable expression. This is a
kind of type driven conditional compilation.
--
Ticket URL: <http://code.felix-lang.org/ticket/11>
felix <http://code.felix-lang.org>
The advanced scripting language