From: dblack@... Date: 2007-01-09T12:03:33+09:00 Subject: Re: Why is there a seperate Math class? Hi -- On Tue, 9 Jan 2007, Gregory Brown wrote: > On 1/8/07, Daniel Finnie wrote: >> I have to think this is the first time I've ever really disagreed with >> matz and don't really understand his logic. >> >> If I were to ask someone for the length of the word apples, I would say >> "What is the length of apples?" In ruby, this would be "apples".length. >> >> If I were to ask someone for the sine of, say, 90, I would say "What is >> the sine of 90?" In ruby, this would be Math.sin(90) even though the >> structure of the sentence is the same as for "apples" above. > > but 90.sin * 10 looks as ugly as can be. The expression you're looking for is "ugly as sin" :-) David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)