Re: What's new in 2.5?

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

Christian Cuvier wrote:

<snip>

> - Something I had not mentioned before: assume i+3 falls of the valid indexes
> of sequence s. The current behaviour is that
>
> if s[i+3]<3 then...
>
> crashes as the bound check fails. But no logical condition holds true when
> some of its args doesn't exist.

I disagree. If A is true, then logically speaking (A or B) is also true
in any case, even if B doesn't exist. This consideration also applies to
real Euphoria code, in case that short-circuiting takes place.

> As a result, it would be much simpler to code
> if any such test quietly returned false.

I think that this would considerably increase the number of bugs in
Euphoria programs, because bound checking helps a lot in debugging.

<snip>

Regards,
   Juergen

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

Search



Quick Links

User menu

Not signed in.

Misc Menu