cvogt / flow-comprehensions

Work in progress: Simpler and more powerful alternative to Scala's built-in for-comprehension syntax
Other
25 stars 5 forks source link

Support for nullary context transformer methods #1

Closed cvogt closed 8 years ago

cvogt commented 8 years ago

review by @clhodapp

figured out that continuations nicely allow us to forward traverse the statements while still building up the nested code outside in, but letting the next step decide how exactly, this if needed we can wrap up the iteration, call transformer methods on it, assign it to a val and restart the iteration.

Yes lll should be replaced by fresh name next time we get a chance.

cvogt commented 8 years ago

@clhodapp merging as reviewed in person