From: Eivind Eklund Date: 2007-06-25T15:49:48+09:00 Subject: Re: avoiding nil.methodcalls short and cheap On 6/23/07, Daniel DeLorme wrote: > Thorsten Rossner wrote: > > textvalue = xmltag.get_text.value if xmltag.get_text > > This the solution I use in *my* code for this common problem: > textvalue = xmltag.get_text.ergo.value > > This is my personal solution and I've never seen anyone use something > like this, so it may not be a "common and accepted idiom" but it works > well for me. YMMV > > code for "ergo": (... deleted ...) I love the solution, and have one question: Is there any deeper rationale behind the name "ergo"? Eivind.