[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2007-04-25 (04:56) |
From: | Joel Reymont <joelr1@g...> |
Subject: | Re: Transforming of ASTs and polymorphic variants |
I also tend to write "macros" to lessen the pain of typing up the ASTs in my unit tests. I may have in both a.ml and b.ml (contrived example) type expr = VarIdent of string I then end up with duplicate let id x = VarIdent x in both a.ml and b.ml since A.expr and B.expr are of a different type. It would be great if I could write id once and have it work for both A.expr and B.expr. Thanks, Joel -- http://wagerlabs.com/