Where did the escape code come from (\ n, \ t ...)?

Purely interesting ... since they are still around and are used in C # today ...

Where did the scheme for using escape codes come from? What language did he first appear in? What languages, if any, solved the problem differently?

+3
source share
1 answer

I suspect that these escape codes originated in B, the assembly level programming language for the Honeywell 6000 GCOS. This language was developed at Bell Labs based on the British language called BCPL. Because BCPL was pretty verbose, the B developers simplified the syntax and added things like curly braces to replace BEGIN and END. Where the name B came from, because it was an abbreviated form of BCPL.

Later, some people at Bell Labs created a language that was B's successor, mainly by adding typing and a standard I / O library. Since he was the successor to B, they chose the next letter in the name of BCPL.

, B, C UNIX B, , B , , , Bell Labs . , Bell Labs B, , , , 1970- .

, escape- , Baudot 19- , 5 , . Baudot SI (Shift In) SO (Shift Out), , Shift .

+3

Source: https://habr.com/ru/post/1721909/


All Articles