Line comments versus line splicing [entries|reading|network|archive]
simont

[ userinfo | dreamwidth userinfo ]
[ archive | journal archive ]

Wed 2013-06-19 14:02
Line comments versus line splicing
LinkReply
[personal profile] fanfWed 2013-06-19 18:42
In a language with significant newlines you need both comment-with-splice and comment-without-splice - the latter so that you can add a comment without affecting the meaning of the layout. For example, I might have a makefile containing

OUTPS=${SRC:.tex=.ps}
OUTPDF=${SRC:.tex=.pdf}
OUTDVI=${SRC:.tex=.dvi}

And I should be able to comment out any of those lines without inadvertently concatenating them.
Link Reply to this | Parent | Thread
[personal profile] gerald_duckThu 2013-06-20 00:05
It's not absolutely necessary, of course — you could just drop in a blank line afterwards.

But I do see what you mean. /-8
Link Reply to this | Parent
navigation
[ go | Previous Entry | Next Entry ]
[ add | to Memories ]