rspec/rspec-core — Issue #505: Using lambda literals in let()
Author: jdelStrother
Created: 2011-11-18 18:55:25+00:00
State: open

I was failing to get any real work done this afternoon and so started messing around with trying to improve the let() syntax. The extra parentheses always bugged me a bit.

```ruby
let foo: -> {Bar.new},
chunky: -> {Bacon.new}
```

I can't quite decide if it's an improvement or just syntactic masturbation, so decided to throw it out there for comments...
https://github.com/jdelStrother/rspec-core/commit/695754300cdb72a814f6a6b3187cf1d68982dfc1

(The spec would need rewriting to run under ruby 1.8. but the implementation would work fine.)