[LRUG] To debug the impossible bug

Matthew Rudy Jacobs matthewrudyjacobs at gmail.com
Wed Aug 3 04:19:43 PDT 2011


Ok,
I found it in the RubySpec

https://github.com/rubyspec/rubyspec/blob/master/language/case_spec.rb

describe "The 'case'-construct with no target expression" do
  it "evaluates the body of the first clause when at least one of its
condition expressions is true" do

it "evaluates the body of the first when clause that is not false/nil" do
* *it "evaluates the body of the else clause if all when clauses are
false/nil" do
* *it "evaluates multiple conditional expressions as a boolean disjunction"
do
*
*
*Need to think about this.
*

Thanks.

On 3 August 2011 12:12, Matthew Rudy Jacobs <matthewrudyjacobs at gmail.com>wrote:

>
>
> On 3 August 2011 12:09, Tom Stuart <tom at therye.org> wrote:
>>
>>
>> See page 141 of the pickaxe for this use of case.
>>
>> Cheers,
>>
>> Tom
>>
>> Please enlighten me, then.
> What's the usecase?
>
> Have never seen this done.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20110803/5696ee72/attachment-0003.html>


More information about the Chat mailing list