AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Open Python Generators - A Good Example of a Mathematically Simple Approach
Python's algebraic effects feature is an attempt to steal ideas from Scheme and Racket. It lets you do async await and generators, yeah, and co-routines - all of which just provided by a single language feature. Another thing is that with the idea that you can go and take an idea from somewhere like Scheme and then work out how to type check it to give you a language feature. That's one way of thinking about them.