Digraphs are two-character punctuation tokens in programming languages that can replace a single character. They are usually used to write certain characters not present in older character maps (most notably ISO-646
Pascal introduced the idea of digraphs. It defined a small set of digraphs to get around the problematic brackets and curly braces. Pascal defines the following digraphs:
The 1999 revision of ISO C (C99) and ISO C++ define a set of digraphs, in addition to the standard C90 trigraphs. The digraphs were added to the standards due complaints that the original trigraphs were ugly and hard to read. The digraphs provide only a slight improvement. The digraphs accepted in C are:
Here is a sample with trigraphs:
int main(int argc, char *argv??(??)) ??<
And now with digraphs:
int main(int argc, char *argv<: :>) <%
Maybe a little bit better, but it hardly seems worth the effort.