orc-lang / orc

Orc programming language implementation
https://orc.csres.utexas.edu/
BSD 3-Clause "New" or "Revised" License
41 stars 3 forks source link

Update documentation for "block syntax" for closures #158

Open arthurp opened 7 years ago

arthurp commented 7 years ago

OrcO introduced a "block syntax" for closures (informed by Scala's placeholders). This is not covered in the documentation. It should be added to the documentation as an alternative syntax for lambdas. This old syntax still works and should be introduced first because it is so much more explicit. The block syntax can be explained in part as a translation to lambdas.

The name "block syntax" is quoted because we should evaluate different names and try to come up with something better. "Block" is used in Smalltalk for something similar. We should look at what terms Scala uses as well.