Clifford Beshers wrote:
> How about an `eval' Function?
> > eval :: String -> a
> It takes a chunk of Haskell code and evaluates it. Seen it done in Lisp
> many times.
>
> Yuck. This forces you to have a parser in your program. This is
> precisely what I want to avoid. This is the sort of thing knee-jerk
> think I would think of. Sheard has done a much better job.
Actually, I think it's a wonderfully elegant solution. Very
straight-forward, with few conceptual hurdles to leap over. Difficult to
implement, and probably dog-slow, but not a bad "idea". ;-) Actually,
you're right, I really should take a look at the existing systems first.
(i.e., MetaML) (Meta-Meta-Language?)
BTW, if you can't tell by the smirk on my face, I'm not really all that
serious. I'm just stating what (IMHO) would be the ultimate goal.
Regards,
- Michael Hobbs