Sandro Santilli <s...@kbt.io> writes: > On Sun, Dec 02, 2018 at 03:26:44PM +0100, Thomas Morley wrote: >> Am So., 2. Dez. 2018 um 14:01 Uhr schrieb Sandro Santilli <s...@kbt.io>: >> > >> > Very obscure way to put chords >> > in parenthesis (I asked yesterday). >> >> I beg to differ. > > Really ? And right after this statement you post a 36 lines > snippet of code full of parens ? :P > > I know Lilypond is powerful, that's why I still use it, but > it's hard not to notice how obscure its code is (what is it, > scheme?)
C++. Its own language is hand-crafted syntax, and the extension language is GUILE, a Scheme dialect. Apart from being Scheme, the extension language shadows the structure of both the LilyPond language and its internals pretty closely, to the degree where closures can span across language barriers. That makes for a much more thorough and manageable synthesis than, say, LuaTeX with its Lua "extension" language. If you think LilyPond's integration of extension language and document language is "obscure", try LuaTeX. Lua by itself is a procedural language and thus tends to be more readable to humans than Scheme which has a more "intuitive" syntax to computers, but integrating Lua with other languages to the degree Scheme allows for is not there. It's also hard not to notice what kind of off-the-cuff code can be done by people acquainted with LilyPond when you ask nicely, and this kind of code just integrates painlessly into documents. Make no mistake: the TeX world has its own wizards and masterpieces, but impressive as they are, they are not "off-the-cuff" and many demonstrate how to coax TeX in incredibly clever way to do simple things. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user