Quote:Original post by RebootedQuote:Original post by jsgcdude
I'm interested to hear how someone with more experience would compare ocaml to lisp? Ocaml has no preprocessor, which I understand to be on of lisp strengths?
Lisp isn't really about functional programming, it's about a lot of things.
As for the preprocessor, Lisp/Scheme use macros which can manipulate code at compile time. It's much more advanced than C's preprocessor. OCaml has CamlP4 and an extension called MetaOCaml.
I'm not quite sure what your definition of compile time is for lisp, but I'd say that lisp macro's allow you to manipulate code at run time!. ie you can use macro's to dynamically generate your code the first time its executed or you could use the same macro to generate different code each time its executed depending on the parameters passed to the defmacro call.
Cheers
Chris