Hello.

On Monday 19 July 2010 14:43:46 Sebastian Klein wrote:
> what is the difference between strings and keywords and how are they
> processed?

I think, there should be no difference between them. The keyword itself is a 
string. If a string doesn't have non-keyword characters, it can be used 
without quotes.

> Another example would be the yes keyword in conditions. I'd say
> [oneway=yes] applies to a oneway tag with value yes, true or 1, but
> [oneway="yes"] matches the literal
> value "yes", only.

My opinion on this is that we shouldn't do any magic, and that "yes" should be 
the only "yes" but not "1" or "true". For "magic" comparison I'd write 
something like boolean(oneway)=true, like in eval().

> As keywords (unlike strings) are case insensitive, [oneway=Yes] would
> work, but [Oneway=yes] or [oneway="Yes"] would not apply to a onway=yes
>  tag.

Case insensivity is bad, I think.

-- 
WBR, Andrew

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Mapcss mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/mapcss

Reply via email to