RSpec-ified
[ruby-do-notation.git] / README
blob2d3107911b3e9c5589fb99acfa0c3f3a1588b4dd
1 Haskell-style monad do-notation for Ruby
3 By Aanand Prasad (aanand.prasad@gmail.com)
5 A first attempt, nervous and shaky. It is liable
6 to drop its cigarette in fear if you look it
7 too closely in the eye.
9 Its biggest failing, and I don't see a way
10 out, is that you don't get lexical scope. ParseTree
11 is wonderful, but it can't work miracles.
13 You can work around it, though, by passing in
14 stuff from the outside as arguments to `run',
15 and specifying those arguments on the block
16 you pass in as well.
18 Examples at the bottom.