Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
lower-case tag names allowed?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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?

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,