From: Matthias Ludwig Date: 2006-02-01T04:20:51+09:00 Subject: Re: Syntax Hi, > 1. if I like ruby-syntax. I like this one: print a if a == 10 it's very bad, i know ;) > 2. Rails' link_to hmm, good question... i use this one: > link_to 'Show', :action => :show, :id => @post > 3. Classes full ACK to Ruby-Syntax... > 4. Loop this looks cool (maybe with an "end") because it's short: > 5.times i > print i but the "short" ruby one is ok, too: 5.times {|i| print i} > 5. Map i use this: > arr.map{|e| e * 2} to much letters: ;) > arr.map do |e| > e * 2 > end looks very nice: > arr.map(e, e * 2) grr, i want to know what happens to my vars... i don't like this much: > arr.map(e * 2) # variable is 'e' (element) by default Matthias