At one stage I seriously thought about implementing ButFirst.pm in Ruby. I couldn't think of a nice way that would make it work as nicely as in Perl, but who knows, maybe in 1.9.
On Tue, Mar 10, 2009 at 9:56 PM, Chris Lloyd <[email protected]> wrote: > Julio, my man, you have just inspired me to learn Perl. That is awesome. > I personally love the Hash syntax. > { > 'start' => 'end' > }.each{|target, destination| `ln -s #{target} #{destination}` } > { > Klass => :method > }.collect{|k,m| k.send(m) } > It's just a beautiful way of signifying all sorts of things. Though Obie > beat me to it. Similarly, I also like how Ruby only has two > standard implementations of collections, not 11. > > On Tue, Mar 10, 2009 at 8:06 PM, Perryn Fowler <[email protected]> wrote: >> >> > Symbol-to-proc, and the use of `&` to coerce things to procs: >> > >> > [1,2,3,4,5].select(&:odd?) >> >> personally I have never liked this. >> >> It is one of those idioms where you have to know what it does to know >> what it does. I prefer readability over terseness every time. >> >> > > > > -- > chrislloyd.com.au > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en -~----------~----~----~----~------~----~------~--~---
