[Haskell-cafe] Metaprogramming in Haskell vs. Ocaml

Bulat Ziganshin bulat.ziganshin at gmail.com
Tue Apr 6 06:59:56 EDT 2010

Hello aditya,

Saturday, April 3, 2010, 6:56:23 AM, you wrote:

> Haskell. And I'm also wondering why metaprogramming is used much more
> in Ocaml than in Haskell.

reasons are two-folded: haskell is more powerful language. in
particular, there are lots of generic programming approaches besides
TH. OTOH, TH is as powerful as any other syntax preprocessor, but not
as easy to use. especially if you try to learn it by reading original

i suggest you to postpone learning TH. it's not Haskell way :)

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list