[Haskell-cafe] Comment Syntax

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Wed Jun 8 10:27:01 CEST 2011


On 8 June 2011 18:13, Ketil Malde <ketil at malde.org> wrote:
> Guy <guytsalmaves-h at yahoo.com> writes:
>
>> Out of interest, is there any other language where the comment
>> delimiter is invalid if immediately followed by a symbol?
>
> Another quaint example, in shell scripts, lines starting with '#' are
> comments, except when the first line starts with '#!'.  Admittedly, this
> is still a comment as far as the shell is concerned, it's the OS
> that is intercepting the comment's contents and acting on it.

And #! in the first line is also treated as a comment in Haskell code
so that you can run it as a script.

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com



More information about the Haskell-Cafe mailing list