Roy Smith wrote: > In article <[EMAIL PROTECTED]>, > Steven D'Aprano <[EMAIL PROTECTED]> wrote: > >> Side-effects aren't always bad (import, for example, does all its work by >> side-effect). But they are generally frowned upon, and in functional >> languages they are verboten. > > How do you do any I/O in a functional language if side effects are > verboten? For that matter, how does a functional program ever stop > running?
Using Monads. Which basically starts carrying around explicit state in an implicit manner. But that is restricted to very few, specific portions of the program. Diez -- http://mail.python.org/mailman/listinfo/python-list