r/ProgrammerAnimemes • • Feb 20 '20

Duff's Device

Post image
938 Upvotes

21 comments sorted by

View all comments

Show parent comment

2

u/WikiTextBot Feb 20 '20

Digraphs and trigraphs

In computer programming, digraphs and trigraphs are sequences of two and three characters, respectively, that appear in source code and, according to a programming language's specification, should be treated as if they were single characters.

Various reasons exist for using digraphs and trigraphs: keyboards may not have keys to cover the entire character set of the language, input of special characters may be difficult, text editors may reserve some characters for special use and so on. Trigraphs might also be used for some EBCDIC code pages that lack characters such as { and }.


[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.28