22 Jul
2010
22 Jul
'10
12:54 p.m.
On Thu, Jul 22, 2010 at 1:30 PM, Chris Rebert <pyideas@rebertia.com> wrote:
I believe Nick meant returns/yields *within* the `given` suite (he just phrased it awkwardly), e.g.
a = b given: b = 42 return c # WTF
Yep, that's what I meant by the top level code in the given clause (i.e. in the same sense as I would refer to the top level code in a function body). It didn't occur to me that phrasing could be legitimately confused with the header line of the clause until I read Terry's message. Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia