From: Ezra Zygmuntowicz Date: 2007-07-12T10:25:11+09:00 Subject: Re: Beautiful Code : Pity he didn't ask here... On Jul 11, 2007, at 6:18 PM, Tom Copeland wrote: > Right on. Today Rich Kilmer showed me some Rails code that Chad > Fowler > had written. It was something like: > > some_array.map(&:name) Careful with that one Tom. It's *a lot* slower then writing out the block since creating a Proc object has some overhead. Syntactically it's very nice but performance wise it stinks. Cheers- -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez@engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)