Browse thread
Case-insensitive lexing
[
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: | Tom <tom.primozic@g...> |
| Subject: | Re: [Caml-list] Case-insensitive lexing |
> > > > Moving all the keywords into a hashtable, and using that to > differentiate > > between keywords and identifiers actually works very well. > > I never understood why people use a hash table rather than a pattern match > in > OCaml. > Because, at least what I think, comparing strings using a hash-table is way faster than comparing them using pattern-matching. - Tom