ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stephan beal <>
Subject suggestion for if/unless syntax change
Date Wed, 20 Mar 2002 13:18:26 GMT
Hello, fellas,

i have a suggestion for the if/unless clauses:

Rename them to ifset and unlessset. The reason for this is that they have 
behaviour which is counter-intuitive for most programmers (i.e., the people 
using Ant), in that they work if the var is set to *any* value, regardless of 
the true/false interpretation of the var.

i understand this is a huge backwards compatibility issue, but it sure would 
make the usage of if/unless clearer and more intuitive.

----- stephan
Generic Universal Computer Guy -
Office: +49 (89)  552 92 862 Handy:  +49 (179) 211 97 67
"I ain't gen'rally given to physicality of that nature but it saves
a lot of arguing." -- Nanny Ogg

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message