thanks I will be in the Block chapter I'm revising now :) On Aug 17, 2011, at 10:47 PM, Henrik Sperre Johansen wrote:
> On 17.08.2011 22:11, stephane ducasse wrote: >> Hi guys >> >> I would like to get a better system and I would appreciate some comments for >> these methods. >> >> Stef > Execute receiving block with as many arguments as it requires. > This allows us to write blocks more concisely when we are not necessarily > interested in all the available arguments. > > #cull fills the same need as #valueWith[Possible/Enough]Args: , but does not > require creating an Array with the arguments, and will raise an error if > block has more arguments than provided rather than pass nil in the extraneous > ones. > Hence, from where the block is provided, they look almost the same, but where > the block is executed, the code is usually cleaner. > > Cheers, > Henry > >
