From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2cd0b8b65b7d84fb X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Ada's Assembly Language Comments Date: 1997/07/03 Message-ID: #1/1 X-Deja-AN: 254353968 References: <5pg7s9$199k@info4.rus.uni-stuttgart.de> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-07-03T00:00:00+00:00 List-Id: Peter Herman said <> More entertaining still is that dividing things by dereferenced values is quite hazardous in C: x = a+b/*c; and of course is made more hazardous by the fact that comments extend over multiple lines. Like most other things in Ada, the comment choice was not casual, the decisions are very deliberate, and indeed this particular choice was not a particularly controversial one, I think the arguments are rather persuasive that block comments do NOT help the reader. Sure they help the writer by requiring fewer keystrokes in the editor, but the design of Ada does not care much about convenience to the writer, it is dedicated to making the life of the code reader easier. In Ada, if you see X := 3; you know it is an assignment statement, you do not have to search arbitrarily large amounts of surrounding text to see if perhaps it might be a comment after all. Even those people who do a lot of code writing do more code reading, and appreciate this bias (even when they are reading their own code :-)