Account name:
Password
(OpenID?)
(Forgot it?)
Remember Me
You're viewing
simont
's journal
Create a Dreamwidth Account
Learn More
Interest
Region
Site and Account
FAQ
Email
Reload page in style:
site
light
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
Link
Reply
fanf
Wed 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
gerald_duck
Thu 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
]
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.
But I do see what you mean. /-8