[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Block comment syntax
From: |
Marko Rauhamaa |
Subject: |
Re: Block comment syntax |
Date: |
Wed, 06 Aug 2014 11:32:11 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Taylan Ulrich Bayirli/Kammer <address@hidden>:
>> The block comment documentation[1] claims that the closing "!#" must
>> appear on its own line, but this doesn't actually seem to be the
>> case[2]. For example, the line "(display #! comment !# 1)"
>> successfully outputs "1".
>>
>> Can anyone clarify whether the documentation needs to be updated, or
>> if the currently acceptable syntax is unintentional and should be
>> avoided?
>
> While I don't know the answer to your question, Guile 2.0.11 already
> seems to support the #| |# syntax, which has been standardized in
> R7RS,
The "#!" syntax is there for one purpose only: to support the unix/linux
hash-bang syntax. Every "scripting" language needs to support it. "#|"
can't replace it. I wouldn't use "#!" anywhere else in a guile source
file.
<URL: http://en.wikipedia.org/wiki/Shebang_%28Unix%29>
Marko