lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double Parenthesis


From: Kieren MacMillan
Subject: Re: Double Parenthesis
Date: Sun, 9 Feb 2020 12:25:44 -0500

Hi Freeman,

> Ok you are getting closer to what i am asking.

I’m glad!

> Rerote    (let ((rand (random 100))) ...) .    I need to understand it so 
> that i know which to use and when?
>  ((rand (random 100)) or (rand (random 100)

You would never use either, because the parentheses aren’t 
matched/paired/balanced.  ;)

>   for (let ((rand (random 100))) ...) or (let(rand (random 100)) ...) .

As Harm pointed out, indentation will help… Here’s an extremely broken-down 
version:

    (let
        (
            (rand (random 100))
            (a (+ 2 3))
        )
    )

Compressing it onto a single line [which is not necessarily encouraged] gives:

    (let ((rand (random 100)) (a (+ 2 3))))

Hope that helps!
Kieren.
________________________________

Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]