[TxMt] Converting a single-line block into a multi-line block

David Lee david at davelee.com.au
Tue Nov 29 09:03:08 UTC 2005


mm, appears you're right. i stand corrected

cheers,
David


On 29/11/2005, at 1:38 AM, Matt Mower wrote:

> On 28/11/05, David Lee <david at davelee.com.au> wrote:
>> just to complicate matters, I much prefer the curlybrace style
>> expansion. It's also more robust:
>>
>> items.collect { |i| i.children  }.reject{|c| c.children.empty? }
>>
>> with your regex macro becomes
>>
>> items.collect do |i|
>>    i.children
>> end.reject{|c| c.children.empty? }
>>
>> which is illegal Ruby; with a curly-style expansion your macro holds
>> up admirably.
>
> Ummm there's nothing illegal about that expression.
>
> Regards,
>
> Matt
> --
> Matt Mower :: http://matt.blogs.it/
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list