[squeak-dev] Re: [vwnc] Does anyone have a "new" string literal?
tim Rowledge
tim at rowledge.org
Fri Feb 1 18:33:00 UTC 2013
Dave's brilliance is beyond dispute, but that looks very familiar somehow - isn't it something like what used to happen in Seaside?
>
> David Leibs has been pushing a well-thought-through facility he calls (and other systems name) "quasi-quote". Here, a string literal contains escape sequences, a little like printf, that allow one to substitute values. Dave's syntax uses square brackets to escape into Smalltalk. So that (IIRC) you say things like
>
> '<html><head></head><body><H1>[myHeading]</H1>'
tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Never forget: 2 + 2 = 5 for extremely large values of 2.
More information about the Squeak-dev
mailing list
|