Assignment versus binding

Chris Angelico rosuav at gmail.com
Tue Oct 4 15:23:24 EDT 2016


On Wed, Oct 5, 2016 at 6:10 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
> A truly functional programming language wouldn't have side effects (in
> this case, it wouldn't sleep).

That makes sense. When people are sleeping, they're non-functional,
ergo a programming language that can sleep is non-functional :)

Seriously though... this ties in with the other issues about *purely*
functional languages being rather impractical, and the purity
generally being sullied some by things like monads (which I still
don't understand, despite the explanations in another thread). So what
happens if you have a monad "print to the console" in place of Steve's
time.sleep example? Will you get one execution of it or two?

ChrisA



More information about the Python-list mailing list