feature request (&&/|| shortcut)

Arnold Nipper arnold at nipper.de
Wed Jan 5 19:01:58 CET 2011


on 02.01.2011 17:29 Arnold Nipper wrote:

> First of all a Happy New Year and a prosperous and successfull 2011 to
> everyone! May all your wishes come through!
> 
> 
> It looks like BIRD logical && operator is not doing a shortcut. I.e even
> if you have s.th. like
> 
> if 0 && $some_complex_expression then ...
> if 1 || $some_complex_expression then ...
> 
> BIRD will try to evaluate $some_complex_expression. Would really be
> great if you could short cut this as you may have situations where the
> first expression already is false while trying to evaluate 2nd
> expression may lead to run time errors in that case. In this case you
> would have to use a nested "if first_expression then if 2nd_expression
> then" instead of "if first_expression && 2nd_expression then"
> 

no one bites?



Best regards,
Arnold
-- 
Arnold Nipper / nIPper consulting, Sandhausen, Germany
email: arnold at nipper.de       phone: +49 6224 9259 299
mobile: +49 152 53717690      fax:   +49 6224 9259 333

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20110105/1cc95df0/attachment-0001.asc>


More information about the Bird-users mailing list