Python and Ruby

Paul Rubin at nospam.invalid
Mon Feb 1 08:24:06 CET 2010

Chris Rebert <clp2 at> writes:
> get_popular_name would have the type: IO () -> IO String

I don't know if it makes the explanation any clearer, but I think that
isn't quite right.  The Python version would have type 
String -> IO String.  The parameterless Haskell version would just be an
I/O action, with type IO String.  IO () is not really involved.

More information about the Python-list mailing list