lilypond-user
[Top][All Lists]
Advanced

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

Re: New try with lyric extender


From: Yann
Subject: Re: New try with lyric extender
Date: Thu, 13 Feb 2014 16:00:55 +0100

>> Ah yes, it works. I didn't think too much parentheses could harm... Is
>> it because they have some special meaning in scheme (evaluate this
>> expression, or something like this) ?
>
> Yes.  When an expression is read, () enclose a list.  When a list is
> evaluated, its first element is the function to call and the remaining
> elements (after evaluation for functions, before evaluation for macros)
> are the arguments.
>
> So + is a function, and (+) is 0, namely the addition function called on
> zero arguments.  And ((+)) tries calling 0 as a function, but since it
> is not a function, you get an error.
>
> --
> David Kastrup

Aaah... Now I better understand. I'm more used to c-like languages
where parentheses have a more "mathematical" meaning.

Thanks for your explanations !

Yann



reply via email to

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