From: Stig Sandbeck Mathisen Date: 2005-01-31T16:00:49+09:00 Subject: Re: Ten Things Every Java Programmer Should Know About Ruby Navindra Umanee writes: > Zach Dennis wrote: >> - you can use string interpolation, ex: "x: #{@myvar}" instead of >> having to say "x:" + myvar' > > Ruby seems to lose here. The syntax #{@myvar} is a rare case of > ugliness. I've become very fond of using: "x: %s" % @myvar ....or even "x: %s, y: %d" % [@myvar, @myothervar] -- Stig Sandbeck Mathisen -+- http://fnord.no Trust the Computer, the Computer is your Friend