This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: new port: m32c


DJ Delorie <dj@redhat.com> writes:

> Yeah, I'm not a big fan of comments for their own sake.  I use them
> when the code isn't self-explanatory

Function comments aren't explaining what the code does; they explain
what it is supposed to do. That's a difference, because it might be
less specific with less guarantees. So even functions with
self-explanatory code need comments IMHO. Otherwise, when changing the
function, you don't know what subtle details callers might depend on.

-- 
	Falk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]