The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] c's comment
@ 2018-12-07  4:27 Caipenghui
  2018-12-07  8:31 ` G. Branden Robinson
  0 siblings, 1 reply; 5+ messages in thread
From: Caipenghui @ 2018-12-07  4:27 UTC (permalink / raw)
  To: tuhs

Why can't c language comments be nested? What is the historical reason for language design?Feeling awkward.

Caipenghui


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [TUHS] c's comment
@ 2018-12-07 15:01 Richard Tobin
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Tobin @ 2018-12-07 15:01 UTC (permalink / raw)
  To: Caipenghui, tuhs

> Why can't c language comments be nested?

For comments that really are comments, what would be the point?

For comments that are really removal of code - commenting out - there
is a better mechanism, #if (or #ifdef), which does nest.

-- Richard

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-12-07 16:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-07  4:27 [TUHS] c's comment Caipenghui
2018-12-07  8:31 ` G. Branden Robinson
2018-12-07  9:53   ` Caipenghui
2018-12-07 14:06   ` Michael Kjörling
2018-12-07 15:01 Richard Tobin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).