Liste des Groupes | Revenir à cl c |
On 09/21/24 2:54 PM, Keith Thompson wrote:
What you call "Egyptian" braces is the style used by the creators>
of the language
Firstly, this is style. Being a "creator of the language" does not
make one an authority on code formatting style.
>
Secondly, most people pick up "the style used by the creators of
the language" from the code samples used in the 2nd edition of K&R
book. And, as we know, "the creators of the language" went a
little lazy here. The samples were considered of "low importance"
and fell victim to the tightening publishing schedules in front of
the looming "threat" of the upcoming ANSI standard. The code
samples were never properly updated to match the style and spirit
of modern C.
Les messages affichés proviennent d'usenet.