Rob Simmons ([info]simrob) wrote in [info]nolacoaster,
Well I guess Python is better for this particular travesty, then. Support for :? style stuff is really a no-brainer:
static void foo(Expr E) {
  match e with 
    | :? Add -> e.getE1;
    | :? Val -> e.getVal();
...and I think all the fuss over Active Patterns (which are cool) obscures this point.


Advertisement


(Read 11 comments)

Post a comment in response:

From:
Help
Identity URL: 
Username:
Password:
Don't have an account? Create one now.
Subject:
No HTML allowed in subject
   Help
Message:
 
Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…