From: "David A. Black" Date: 2009-08-27T08:05:20+09:00 Subject: Re: ||= with 1.8 and 1.9 ? --1926193751-1239513313-1251327861=:10170 Content-Type: MULTIPART/MIXED; BOUNDARY="1926193751-1239513313-1251327861=:10170" 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-1239513313-1251327861=:10170 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Hi -- On Thu, 27 Aug 2009, Rick DeNatale wrote: > On Wed, Aug 26, 2009 at 5:23 PM, David A. Black wrote: >> It isn't, though, at least in the ||= case (see Joel W.'s post). >> Matz's characterization of it to me at RubyConf (or somewhere) was: >> >> �x ||= y � same as � �x || x = y > > It's approximately the same as certainly closer than x = x || y > > There's a difference in what happens if x is not previously defined True. Maybe this? defined?(x) && x || x = y David -- David A. Black / Ruby Power and Light, LLC / http://www.rubypal.com Q: What's the best way to get a really solid knowledge of Ruby? A: Come to our Ruby training in Edison, New Jersey, September 14-17! Instructors: David A. Black and Erik Kastner More info and registration: http://rubyurl.com/vmzN --1926193751-1239513313-1251327861=:10170-- --1926193751-1239513313-1251327861=:10170--