[felix] #11: fold "regmatch", "reglex", "typecase", and "typematch" into "match"

0 views
Skip to first unread message

felix

unread,
May 12, 2007, 1:47:21 AM5/12/07
to felix-...@googlegroups.com
#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

felix

unread,
Mar 18, 2010, 6:45:26 AM3/18/10
to felix-...@googlegroups.com
#11: fold "regmatch", "reglex", "typecase", and "typematch" into "match"
-------------------------+--------------------------------------------------
Reporter: erickt | Owner:
Type: enhancement | Status: new
Priority: major | Milestone:
Component: syntax | Version:
Keywords: |
-------------------------+--------------------------------------------------

Comment(by dadik):

Set the world on spasobny not only kings - [http://putana011.co.cc]
[http://putana012.co.cc] [http://putana013.co.cc] [http://putana014.co.cc]
but anyone, a former would be the goal!

--
Ticket URL: <http://code.felix-lang.org/ticket/11#comment:1>

Reply all
Reply to author
Forward
0 new messages