(Arne Babenhauserheide)
2014-11-24: note explicitly that parens disable wisp parsing. note explicitly that parens disable wisp parsing.
diff --git a/docs/srfi.org b/docs/srfi.org --- a/docs/srfi.org +++ b/docs/srfi.org @@ -359,14 +359,20 @@ If the colon is the last non-whitespace #+BEGIN_SRC wisp define : stringy s string-append s "can be varied as follows: - " + " ; linebreak in string does not affect wisp parsing string-capitalize s string-reverse s - . (string-capitalize + . (string-capitalize ; linebreaks in parentheses are ignored. (string-reverse s)) . " " +#+END_SRC +Effectively code in parentheses and strings is interpreted directly as Scheme. This way you can simply copy a thunk of scheme into wisp. The following is valid wisp: + +#+BEGIN_SRC wisp +define foo (+ 1 + (* 2 3)) ; defines foo as 7 #+END_SRC ** Clarifications