Remix.run Logo
eru 2 days ago

Haskell and the Lisps also work like this.

Sharlin 2 days ago | parent [-]

Yes, I know, it's the natural way to do it in functional programming. Honestly I doubt there are any FP languages that don't do it like that.

eru a day ago | parent [-]

I like that Rust, just like Lisp and Haskell et al also allow any block to return a value, not just functions. So if-then-else and loops etc can do that. It be nice if Python could do that.

Perhaps I should hack up Python to allow that. Would be an interesting little project.