> > what I think about dash problem:
> > - in writing xml element names (Nant tasks) is common to use dashes
> Agreed.
> > A/ allow it on lexical level:
> > So: <if test="${some-long-property - long-function(1)=42}"/> it means
> > "prop - func(1)=42"
> > but <if test="${some-long-property-long-function(1)=42}"/> it means
> > "func(1)=42"
>
> And assuming "a" and "b" are properties, what would be the result of:
> "${a-b}" ??????
> I don't understand why should it be different from ${a<SPACE>-<SPACE>b}.
It is little strange - yes. But Python seems little strange to me as well
when I first saw it...
[ it uses indentation as lexical symbol]
> Most languages let you place whitespaces around operators so disallowing
> this wouldn't be convenient.
It dont disallow - it forces to do so... [maybe even worse]
> > B/ do some property name tweaking before EE run.
> > e.g. to replace all "-" with "_"
> > So u use:
> > <property name="mine-property" value="42"/>
> > <if test="${mine_property=42}">
> >
> > this is not so clean, but quite acceptable.
> I don't like this approach at all, I think it does more harm than good.
Ok.
> > C/
> > Of course, we could disallow dashes in property names as all but it will
> > break alot builds I think...
>
> I think that dashes in names should be disallowed or at least deprecated.
>
> There's a function called: propertyvalue() that can be used to access such
> properties.
> It takes an argument which is a string so you can pass it anything, even
> strings which include spaces, dashes - anything.
There is currently only few properties with dash in name so disallow it in
the expression evaluator but keep it enabled to define should be ok.
SUM: I'm for disallowing dashes in EE variables but keep it in properties +
define propertyvalue() function
Hope mine suggestion for dash mangling do not shock you much :-)
Martin
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers