Re: if statement not working

new topic     » goto parent     » topic index » view thread      » older message » newer message

Rod Jackson wrote:

>> Yes, and that's perhaps the most suprising bit of all. You'd sort of
>> expect that with an emphasis on being orthagonal, the 'if' would 
>> accept {0, 0} as false, and { 0, 1 } as true.
>
> Well, I'm kinda late into this thread, but I have to ask:
>
> Why would {0,1} be logically assumed to be true?

No, sorry. For some reason all zeros as false and anything else as true 
seemed like a good idea last night, but it seems pretty indefensible now.

In any event, I was more musing out loud than actually advocating this.

The only thing I'm *actually* suggesting is that some string specific 
routines (such as substring) be added to the standard Euphoria library. That 
way, people would use them for string operations, instead of the more risky 
slices.

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu