comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Comments?
Date: 1999/01/17
Date: 1999-01-17T00:00:00+00:00	[thread overview]
Message-ID: <m3r9sugz5g.fsf@mheaney.ni.net> (raw)
In-Reply-To: 77qt10$c2m$1@winter.news.rcn.net

"Gold Rush Graphics" <goldrushgraphics@erols.com> 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.




  parent reply	other threads:[~1999-01-17  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-16  0:00 Comments? Gold Rush Graphics
1999-01-16  0:00 ` Comments? David C. Hoos, Sr.
1999-01-17  0:00 ` Matthew Heaney [this message]
1999-01-17  0:00   ` Comments? robert_dewar
1999-01-18  0:00     ` Comments? Lance Kibblewhite
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox