[Mapcss] Strings and Keywords
Andrew O. Shadoura
bugzilla at tut.by
Mon Jul 19 13:14:19 BST 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.openstreetmap.org/pipermail/mapcss/attachments/20100719/9dcb8501/attachment.pgp>
More information about the Mapcss
mailing list