From: "Anders Engström" Date: 2005-02-14T09:03:39+09:00 Subject: Re: Printing why's (poignant) guide to ruby On Mon, Feb 14, 2005 at 08:19:57AM +0900, William James wrote: > > Michael Walter wrote: > > The Ruby user would think "Who puts?" :-) > > > > Michael > > > > Anders Engstr�m wrote: > > > Ruby: > > > > > > (hello.rb) > > > puts "Hello World" > > "Hello, world!".display > Ok, that's probably more intuitive :) But not if you want to achieve the same effect as 'puts'. Then you'd have to change it to: "Hello World!\n".display That '\n' is pretty confusing for a newbie. //Anders -- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Anders Engstr�m aengstrom@gnejs.net . http://www.gnejs.net PGP-Key: ED010E7F . [Your mind is like an umbrella. It doesn't work unless you open it.]