What can be done with a Haskell monad that cannot be done with a Lisp macro, and vice-versa? -
my current understanding macros can implement imaginable concept, including monads, because "have compiler @ hands". true? example, have came across link
please, give me facts , examples, no passionate answers. thank you.
that's kind of odd comparison. it's bit asking "what can petrol car diesel generator cannot?" er, well, aren't same class of thing...
lisp macros [which know nothing about] allow compile-time meta-programming. can use achieve sorts of useful things, eliminating bit of boilerplate code virtually defining entire new programming language.
haskell monads useful way structure kinds of computations. make easy things otherwise bit tedious. (e.g., checking result of each , every function make sure succeeded before running next function.) of run-time thing, though; has nothing compile-time code generation.
Comments
Post a Comment