A C-like if statement
Steven D'Aprano
steve at REMOVETHIScyber.com.au
Fri Feb 24 08:28:30 EST 2006
On Fri, 24 Feb 2006 08:03:49 -0500, Roy Smith wrote:
> In article <pan.2006.02.24.11.07.19.764837 at REMOVETHIScyber.com.au>,
> Steven D'Aprano <steve at REMOVETHIScyber.com.au> 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?
Fair enough.
But still, ignoring unavoidable cases like writing to a file, the ideal of
functional languages is for side-effects to not exist.
--
Steven.
More information about the Python-list
mailing list