Changes between Version 4 and Version 5 of QualifiedIdentifiers
- Timestamp:
- 03/13/07 08:06:19 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
QualifiedIdentifiers
v4 v5 7 7 eg. 8 8 9 * `M.where` should be 3 lexemes (Hugs treats it as 1) 10 * `M...` should be 2 lexemes (`..` is a reserved symbol and can't be qualified, neigther GHC nor Hugs implements this) 9 * `M.where` should be 2 lexemes, `M.wher` and `e`. (Hugs treats it as 1, GHC treats it as 3 (see [http://hackage.haskell.org/trac/ghc/ticket/1215])). 10 * `M...` should be 2 lexemes, `M..` and `.` (`..` is a reserved symbol and can't be qualified, neigther GHC nor Hugs implements this) 11 * `M.\` should be 2 lexemes, `M` and `.\` 11 12 12 The trickiness in implementation is due to the lookahead required. GHC deals with the first example with some special case code.13 The trickiness in implementation is due to the lookahead required. 13 14 14 15 Fixing the lexical syntax is easy, we define … … 31 32 === Pros === 32 33 34 * the consequences of the current lexical syntax are ugly (`M.wher` `e` ?) and unintentional. 33 35 * most compilers don't get it right anyway, this is just a small change that makes it easier to implement Haskell.
