Using keywords as identifiers in F#

Given section 3.4 of the F# 2.0 spec: Identifiers follow the specification below. Any sequence of characters that is enclosed in double-backtick marks (“ “), excluding newlines, tabs, and double-backtick pairs themselves, is treated as an identifier. I suspect you can put it in backticks: “private“ I haven’t tried it though.

Is there a spec that the id of elements should be made global variable?

It depends on which spec you read. 🙂 This behavior is not described by the HTML4 specification (c.f., http://www.w3.org/TR/1999/REC-html401-19991224/struct/global.html#adef-id and http://www.w3.org/TR/1999/REC-html401-19991224/types.html#type-name). However, it was introduced by Internet Explorer and then copied in other major browsers for compatibility. FireFox also displays this behavior, but only in quirks mode (and even then its implementation seems buggy). The …

Read more

Unicode identifiers in Python?

(I think it’s pretty cool too, that might mean we’re geeks.) You’re fine to do this with the code you have above in Python 3. (It works in my Python 3.1 interpreter at least.) See: http://docs.python.org/py3k/reference/lexical_analysis.html#identifiers http://www.python.org/dev/peps/pep-3131/ But in Python 2, identifiers can only be ASCII letters, numbers and underscores. http://docs.python.org/reference/lexical_analysis.html#identifiers