From: "David A. Black" Date: 2008-12-05T07:28:29+09:00 Subject: Re: 'and' keyword? --1926193751-63741770-1228430066=:27840 Content-Type: MULTIPART/MIXED; BOUNDARY="1926193751-63741770-1228430066=:27840" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1926193751-63741770-1228430066=:27840 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Hi -- On Fri, 5 Dec 2008, List.rb wrote: > On Dec 4, 2008, at 3:51 PM, "Robert Dober" wrote= : > >> What about? >>=20 >> puts %w{ hi bye } >>=20 >> R. >> --=20 >> Ne baisse jamais la t=C3=AAte, tu ne verrais plus les =C3=A9toiles. >>=20 >> Robert Dober ;) >>=20 > > > In English, I woud say.. > > jump and shout unless someone is sleeping. > > Ruby is so elegant that I fidng myself wanting to write similarly,. > > jump and shout unless someone.sleeping? Ruby isn't English, though. > :-( > > > Just wish it's was interpreted as such It is; it's just that puts returns nil, so it doesn't pass through the and gate. I don't think the word "and" just to mean "and then execute this" would be very useful. David --=20 Rails training from David A. Black and Ruby Power and Light: INTRO TO RAILS (Jan 12-15), Fort Lauderdale, FL See http://www.rubypal.com for details Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2) --1926193751-63741770-1228430066=:27840-- --1926193751-63741770-1228430066=:27840--