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,c1eb8931f0a45486 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: Comments? Date: 1999/01/16 Message-ID: #1/1 X-Deja-AN: 433450397 References: <77qt10$c2m$1@winter.news.rcn.net> Newsgroups: comp.lang.ada X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Date: 1999-01-16T00:00:00+00:00 List-Id: Gold Rush Graphics wrote in message <77qt10$c2m$1@winter.news.rcn.net>... >I have a question...I am learning some programming languages and have >noticed that some languages such as Pascal and C++ use delimiters on both >ends of comments. Other languages, such as Fortran and Ada, use a symbol of >symbols to indicate the beginning of a comment and the end of line to >terminate it. Why would these languages take such different aprouches to >solving the same problem and which method is better? > If you'll look again, you'll find that C++ also uses only leading delimiters, i.e., "//". The only advantage to comments delimited on both ends is that you can have multi-line comments, in such a case.