Lecture overview
Keyboard shortcut: 'u'  Previous page
Keyboard shortcut: 'p'  Next page
Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide
Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home    Slide 9 : 20
Semi constant strings in Scheme

When we compare an SGML family language with a Lisp family programming language we find some major syntactical differences. The observation about semi-constant strings is one of the most important

It would be convenient to support a semi constant string concept analogous to quasi quoted lists in Lisp

    A text with a 
    <a href="subsection/sec1.html">link</a> 
    to a <b>subsection</b>

This is a typical HTML/XML fragment

    "A text with a 
     (a "link" 'href "subsection/sec.html")
     to a (b "subsection")

Here we attempt to use a semi-constant string in Scheme. This does actually not make sense.

      "A text with a " 
       (a "link" 'href "subsection/sec.html")
      " to a " (b "subsection")))

Here we see the solution we use in all our examples. This uses a plain Scheme programming approach.

We have dropped the idea of supporting semi-constant strings in Scheme

Instead we go for distinguished editor support of the 'string-append' forms