Talk:Strip comments from a string: Difference between revisions

Content deleted Content added
Rdm (talk | contribs)
strings containing comments inside a string...recursive?
Line 19:
 
:Should we treat lines without comments as if they ended with an empty comment? (In other words, should trailing white space be removed from lines without comments? Or does that not matter?) --[[User:Rdm|Rdm]] 19:59, 29 March 2011 (UTC)
 
==Comments in Strings==
Are we to assume the comment character (# or ;) is not going to ever be inside a string "#" or that there are no strings in whatever language this is? If there are strings, do we assume '#' is not a valid strings in this language? what about Ruby where strings can often be delimited by meaningless characters? In order to properly "strip comments" we need to know what we're stripping them from.
Return to "Strip comments from a string" page.