lilypond-devel
[Top][All Lists]
Advanced

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

Re: Provide Scheme sandbox. (issue 5453045)


From: dak
Subject: Re: Provide Scheme sandbox. (issue 5453045)
Date: Thu, 08 Dec 2011 09:07:01 +0000

Reviewers: Keith,

Message:
On 2011/12/08 00:38:07, Keith wrote:
Very nice.
If you make it this easy, I might learn Scheme...
nah.

Well, it is like converting people to Emacs.  Those who have gotten
burnt 20 years ago are a lost cause.  You can't erase their childhood
memories.  And they look with envy and disbelief and inferiority if some
newcomers seemingly get along without much of an apparent problem.  And
when they interview them or look over their shoulders, they don't see
anything to suggest that their apparent mastership has cost them lots of
sweat.  And you ask them, and they don't seem to understand.

So you decide that you are just wired differently, and Emacs is not for
you.

What you don't understand is that Emacs is no longer scanning your
weaknesses of understanding and kneeing you in the gut whenever you do
something as careless as typing a backspace.

I am working on that "Why would I be afraid of Scheme?  It seems
simple." angle.  And no mistake: if you consider working in C++ easier
than in Scheme, something is utterly wrong.

#{ ... #} goes to some lengths to defuse Scheme programming, too.  Its
power has vastly increased in the last half year or so.


http://codereview.appspot.com/5453045/diff/1/Documentation/extending/scheme-tutorial.itely
File Documentation/extending/scheme-tutorial.itely (right):


http://codereview.appspot.com/5453045/diff/1/Documentation/extending/scheme-tutorial.itely#newcode76
Documentation/extending/scheme-tutorial.itely:76: available calling
available with this command-line
@example
lilypond scheme-sandbox.ly
@end example

I prefer "command line" but other than that, I'll bow to your judgment.
I am so used to command lines that I don't think of mentioning them.

Not uploading a separate Rietveld patch for just that, but changing it
in my copy.

Description:
Provide Scheme sandbox.

Please review this at http://codereview.appspot.com/5453045/

Affected files:
  M Documentation/extending/scheme-tutorial.itely
  A ly/scheme-sandbox.ly


Index: Documentation/extending/scheme-tutorial.itely
diff --git a/Documentation/extending/scheme-tutorial.itely b/Documentation/extending/scheme-tutorial.itely index ef6c435e49274eb39524bb7fb843a198c489c902..ea36e4e9cbeeb23467d3ec195ef6dc03d9eb3ccb 100644
--- a/Documentation/extending/scheme-tutorial.itely
+++ b/Documentation/extending/scheme-tutorial.itely
@@ -72,6 +72,13 @@ see @rlearning{Other sources of information}. Alternatively, Windows
 users may simply choose @q{Run} from the Start menu and enter
 @q{guile}.

+However, a hands-on Scheme sandbox with all of Lilypond loaded is
+available calling
address@hidden
+lilypond scheme-sandbox
address@hidden example
+
address@hidden
 Once the guile sandbox is running, you will receive a guile prompt:

 @lisp
Index: ly/scheme-sandbox.ly
diff --git a/ly/scheme-sandbox.ly b/ly/scheme-sandbox.ly
new file mode 100644
index 0000000000000000000000000000000000000000..eb38380256157866f19e14254a5f341a51cadffb
--- /dev/null
+++ b/ly/scheme-sandbox.ly
@@ -0,0 +1,5 @@
+\version "2.14.0"
+#(use-modules (ice-9 readline))
+#(activate-readline)
+#(newline)
+#(scm-style-repl)





reply via email to

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