A C-like if statement

Rene Pijlman reply.in.the.newsgroup at my.address.is.invalid
Fri Feb 24 08:25:36 EST 2006


Roy Smith:
>How do you do any I/O in a functional language if side effects are 
>verboten?  

The user is a function. Output is its parameter, input its return value.
The user is not allowed to maintain state ;-)

>For that matter, how does a functional program ever stop running?

By returning to the caller.

-- 
René Pijlman



More information about the Python-list mailing list