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=0.1 required=5.0 tests=BAYES_05,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: Matthew Heaney Subject: Re: Comments? Date: 1999/01/17 Message-ID: #1/1 X-Deja-AN: 433565668 Sender: matt@mheaney.ni.net References: <77qt10$c2m$1@winter.news.rcn.net> NNTP-Posting-Date: Sat, 16 Jan 1999 23:00:39 PDT Newsgroups: comp.lang.ada Date: 1999-01-17T00:00:00+00:00 List-Id: "Gold Rush Graphics" writes: > 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? The reason Ada avoided a comment terminator is so that you can't accidently comment-out any code. If you're using Pascal or C, then be sure to use an editor that supports color-coding. You have to make it obvious which part of your code is comment, and which is not.