Hacker News new | ask | show | jobs
by lenzm 324 days ago
Shebang lines are semantic comments too
1 comments

Not necessarily-while many languages which accept shebangs use hash as a line comment introducer, others don’t, but nonetheless will accept a shebang at the start of a file only. e.g. some Lisp interpreters will ignore the first line of a source file if it starts with #!, but otherwise don’t accept # as comment syntax.