For example, I want to break the long string in the below panic statement:
(panic "Truth-assignment length is longer than the number of propositions!")
I have tried
(panic "Truth-assignment length is longer than the number \
of propositions!")
and
(panic "Truth-assignment length is longer than the number
of propositions!")
and they both don't work. Googling hasn't turned up anything either.
views:
60answers:
2
+1
A:
Not all Scheme specifications define a way to break long strings. The answer to your question depends on which Scheme you are using. I believe R6RS includes a method like the first one you tried. Others might provide no such option, forcing you to either reduce the length of your strings, have very long lines, or use string-append with smaller strings.
Have a look at these links: http://www.mail-archive.com/[email protected]/msg01810.html http://practical-scheme.net/gauche/ (search for 2008/2/13)
tehblanx
2010-02-05 21:15:26
+1
A:
Use string-append with the built-in formatting of your IDE:
(panic (string-append "Truth-assignment length is longer "
"than the number of propositions!"))
grettke
2010-02-06 04:07:24