From: Louis J Scoras Date: 2006-11-17T03:01:27+09:00 Subject: Re: #returning and #tap On 11/16/06, Ryan Davis wrote: > I realize this is a contrived example on your part, but you did > choose it and were trying to make a relevant point. That said, I have > yet to see an example of returning used in a non-contrived way. [snip] > once again returning is used in a completely useless way... No. You're absolutely right that this was a useless, contrived example; however, I think the point still comes across. Sometimes you need to initialize a local variable before you use it a block. In that case I still contend that 'returning' is more readable than the initialize/mutate/return pattern. This is a pattern that should be extracted; basically it's inject w/o the iteration component. -- Lou.