[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need help using math in markup command definition, and a feature req
From: |
Werner LEMBERG |
Subject: |
Re: Need help using math in markup command definition, and a feature request. |
Date: |
Tue, 09 May 2023 04:17:15 +0000 (UTC) |
> Second, you need to use `let` here, not `define`. See
>
> https://extending-lilypond.gitlab.io/en/scheme/local-variables.html
BTW, I suggest to cover one more issue with local variables, namely
whether arguments to a function are seen in sub-functions, which are
IMHO a very good addition to `let` and `let*` to write clean and
readable code – often much more readable than anonymous lambda
expressions.
Example:
```
(define (foo bar)
(define (baz)
...
(if bar) ; Is 'bar' visible? If yes, when is 'bar'
... ; expanded? At the time 'foofoo' is defined?
; At the time 'foofoo' is executed?
```
Werner
- Need help using math in markup command definition, and a feature request., dfro, 2023/05/08
- Re: Need help using math in markup command definition, and a feature request., Jean Abou Samra, 2023/05/08
- Re: Need help using math in markup command definition, and a feature request.,
Werner LEMBERG <=
- Re: Need help using math in markup command definition, and a feature request., Werner LEMBERG, 2023/05/09
- Re: Need help using math in markup command definition, and a feature request., Jean Abou Samra, 2023/05/09
- Re: Need help using math in markup command definition, and a feature request., Werner LEMBERG, 2023/05/09
- Re: Need help using math in markup command definition, and a feature request., Jean Abou Samra, 2023/05/09