[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: comment bug
From: |
bb |
Subject: |
Re: comment bug |
Date: |
Sat, 26 May 2018 18:51:56 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
Forgot Clojure, a wonderful modern functional language I recommend
;; comment can also be written as (comment …)
(comment this is a
block comment.
(comment block comment can be nested.)
)
Am 26.05.2018 um 18:46 schrieb bb:
>
> The essential point: The case of nested block comments is not
> mentioned in the manual. (Or I cannot find it?)
>
> #################################
>
> off topic:
>
> Have you heard about Lua? Nice language!
>
> | print ("This will be printed first")
>
> --[===[ Comment out a whole big block!
>
> --[[ This is a multiline comment telling you about
> the work this code is doing ]]
>
> print ("This will not be printed in the middle")
>
> --[[ This is another multiline comment telling you about
> the work this code is doing ]]
>
> end of big block comment ]===]
>
> print ("This will be printed last")|
>
> MATLAB
> d = [0 -1 0];
> %{
> %{
> (Example of a nested comment, indentation is for cosmetics (and ignored).)
> %}
> We form the sequence, following the Taylor formula.
> Note that we're operating on a vector.
> %}
> seq = d .* (x - c).^n ./(factorial(n))
>
> OCaml and Scala allows nested block comments. That are only the
> languages I had some contact.
>
> Regards
>
>
> Am 26.05.2018 um 17:58 schrieb Urs Liska:
>> Am 26. Mai 2018 17:43:19 MESZ schrieb Andrew Bernard <address@hidden>:
>>> Isn't it simply that you can't have nested block comments?
>> I can't think of any language that allows nested multiline comments.
>>
>> Urs
>>
>>> Andrew
>>>
>>>
>>> On 27 May 2018 at 01:14, bb <address@hidden> wrote:
>>>
>>>> \version "2.19.80"
>>>>
>>>> %{
>>>> \score {
>>>> <<
>>>> %{
>>>> %some code
>>>> %}
>>>> >>
>>>> }
>>>> %}
>>>>
>>>>
>>> _______________________________________________
>>> bug-lilypond mailing list
>>> address@hidden
>>> https://lists.gnu.org/mailman/listinfo/bug-lilypond
>