Can we define properties as:

property name => identifier { separator identifier } *
separator =>  "." | "-".
identifier => [a-zA-Z_][a-zA-Z0-9_-]*

In English:

"property name" is a sequence of "identifiers" separated by "separator"s
"separator" is a dot
"identifier" starts with a latin letter or an underscore and contains only
letters, digits underscores or dashes.

This may affect people using property names with non-latin characters.

Jarek

----- Original Message ----- 
From: "Ian MacLean" <[EMAIL PROTECTED]>
To: "Martin Aliger" <[EMAIL PROTECTED]>
Cc: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>; "Gert Driesen"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, December 03, 2003 3:20 PM
Subject: Re: [nant-dev] PATCH: Expression evaluator for NAnt


> Is anyone actually using numeric property names ? I say we should
> dissallow them and be done with it.
>
> Ian
>
> Martin Aliger wrote:
>
> >>>- it won't break compatibility for properties with numeric names (eg
> >>>
> >>>
> >>${123})
> >>Can you have properties with such names? What's the use for them? Maybe
> >>
> >>
> >they
> >
> >
> >>should be disallowed or deprecated?
> >>
> >>
> >
> >What about output warning when defining property with such name?
> >that is on <property name="123" value="whatever"/> outputs something
like:
> >[property] warning: define property with numeric name is not recomended.
[or
> >is deprecated.]
> >
> >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

Reply via email to