Browse thread
lower-case tag names allowed?
- Wolfgang Gehrke
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Wolfgang Gehrke <wgehrke@d...> |
| Subject: | lower-case tag names allowed? |
Hello,
the top level tells me:
Objective Caml version 3.00
# let test1 = `A;;
val test1 : [> `A] = `A
# let test2 = `a;;
val test2 : [> `a] = `a
on the other hand the manual says:
Variant tag = uppercase (tag-name ::= capitalized-ident)
Personally I like to have both possibilities, but I would not like to
rewrite the code in the future. In fact one can bounce into a keyword
(let test = `method;; fails).
What is correct?
Thank you,
Wolfgang