News for hackers. Stuff that matters.
Re:C++ vs. Lisp by yummyfajitas on Tuesday May 04, 2010 @01:46PM (#1318762)
...such as syntactic shortcuts for complicated side effects.

I can think of a couple of examples where I've done such things in lisp (mostly elisp, sometimes Clojure), but I don't see a good reason why I couldn't do them in Haskell. In fact, a function f: a -> M d (with M = IO, Writer or State if you want side effects) almost serves the same purpose: it turns a value into a set of actions to perform.

I'm really curious, could you give an example of such a task/macro?

(Note: I'm not trying to engage in a language war, I'm honestly curious. If I'm treating Haskell as Blub, I'd like to know about it.)

There are no comments on this comment yet.