|
From: | Urs Liska |
Subject: | Re: scheme with Frescobaldi |
Date: | Mon, 25 Jun 2018 22:04:11 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
CCing to the list. Am 25.06.2018 um 21:47 schrieb Freeman
Gilmore:
This is what one refers to as a REPL (read-eval-print-loop), which is what LilyPond's Scheme sandbox does.
Yes. Frescobaldi deals with LilyPond *files*, not an immediate _expression_ evaluation.
No.
When a tutorial writes "=>" it means: "You type in '(+ 1 2 3)', and the REPL will display '6'. So "=>" isn't a syntactical construct but a typographical convention for "the _expression_ to the left evaluates to the datum on the right". Tutorials usually want you to learn from this immediate evaluation, and in Frescobaldi you have to always do that extra step to display something. But in general it's worth the effort, and I do that 90% of the time when I want to try something out or learn more about Scheme. For displaying values you can use #(display) or #(ly:message "Some value: ~a" data) (to start with ...) HTH Urs
|
[Prev in Thread] | Current Thread | [Next in Thread] |