On Tuesday 03 Jan 2006 5:37 pm, Christian Maeder wrote:
> Daniel Carrera wrote:
>
> > Question: What do you call a function that has side-effects? (like
> > putStr) I know that "function" is the wrong term.
>
> "action", "command", "program", etc.

Actually (at the risk of appearing pedantic), I think it's important
to make clear that "function" *is* the correct term for putStr..
 putStr :: String -> IO ()
It's expressions like (putStr "Hello World") of type IO <something>
that are (what I would call) "actions".

Haskell has no name for "functions that have side-effects".
They don't exist (well not unless you're grossly abusing
unsafePerformIO).

Regards
--
Adrian Hey



_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to