Re: What's new in 2.5?
- Posted by "Juergen Luethje" <j.lue at gmx.de> Sep 07, 2004
- 489 views
Christian Cuvier wrote: <big snip> > As an answer to the "this will hide bugs" issue, there might be the addition > of a new keyword, say "ifx". "(els)ifx" is to behave just like "if", except > that it returns false when some conditional expression fails to evaluate. > This way, the of statement is not modified,, andthe benefits of useless data > validation may be bypassed. I say "useless" since the coder has to supply a > check that the interpreter will carry out anyway. Unless it cleverly optimizes > away, of course :). > > Further, any undefined index real bug will show up anyway, most likelly in the > same conditional block, when attempting to read or write from a nonexistant > element, which must remain an error condition in a nonconditional statement. When a subscript error will show up anyway, what would then be the advantage of your proposal? Sorry, it seems that I don't get the point .. > This challenges the very idea that the proposed change will hide bugs. > CChris Regards, Juergen