Exactly what is the difference between a “closure” and a “block”?
While a block is just a piece of code that can be composed by statements and declarations but nothing else, a closure is a real first-class object, a real variable that has a block as its value. The main difference is that a block simply groups instructions together (for example the body of a while … Read more