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 
>> <[email protected]>:
>>> 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 <[email protected]> wrote:
>>>
>>>> \version "2.19.80"
>>>>
>>>> %{
>>>> \score  {
>>>>  <<
>>>>     %{
>>>>     %some code
>>>>     %}
>>>>  >>
>>>> }
>>>> %}
>>>>
>>>>
>>> _______________________________________________
>>> bug-lilypond mailing list
>>> [email protected]
>>> https://lists.gnu.org/mailman/listinfo/bug-lilypond
>

_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to