Created on 2009-03-03.00:00:00 last changed 143 months ago
[Voted into WP at March, 2010 meeting as document N3077.]
Notes from the March, 2010 meeting:
The CWG decided not to deprecate trigraphs, acknowledging that there are communities in which they are viewed as necessary. Instead, it was decided to address what was considered to be the most pressing issue regarding trigraphs, that is, recognizing trigraph sequences inside raw string literals.
Notes from the October, 2009 meeting:
The CWG is interested in exploring other alternatives that address the particular problem of trigraphs in raw strings but that do not require the grammar changes of the approach in N2978. One possibility might be to recognize raw strings in some way in translation phase 1.
Proposed resolution (September, 2009):
See paper PL22.16/09-0168 = WG21 N2978.
Notes from the March, 2009 meeting:
IBM, at least, uses trigraphs in its header files in conditional compilation directives to select character-set dependent content in a character-set independent fashion and would thus be negatively affected by the removal of trigraphs. One possibility that was discussed was to avoid expanding trigraphs inside character string literals, which is the context that causes most surprise and confusion, but still to support them in the rest of the program text. Specifying that approach, however, would be challenging because trigraphs are replaced in phase 1, before character strings are recognized in phase 3. See also the similar discussion of universal-character-names in issue 787.
The consensus of the CWG was that trigraphs should be deprecated.
Trigraphs are a complicated solution to an old problem, that cause more problems than they solve in the modern environment. Unexpected trigraphs in string literals and occasionally in comments can be very confusing for the non-expert. They should be deprecated.
|2010-03-29 00:00:00||admin||set||messages: + msg2651|
|2010-03-29 00:00:00||admin||set||messages: + msg2650|
|2010-03-29 00:00:00||admin||set||status: review -> cd2|
|2009-11-08 00:00:00||admin||set||messages: + msg2380|
|2009-09-29 00:00:00||admin||set||messages: + msg2303|
|2009-09-29 00:00:00||admin||set||status: drafting -> review|
|2009-03-23 00:00:00||admin||set||messages: + msg1938|