[squeak-dev] Re: Deltastreams update
Nicolas Cellier
ncellier at ifrance.com
Thu Mar 12 22:42:10 UTC 2009
Göran Krampe <goran <at> krampe.se> writes:
>
> Mmmmmm, you mean for example in an array like:
>
> {"delta": {
> "method-source-change": {
> "class" : "SomeClass",
> "protocol": "some-method-category",
> "stamp" : "elder 3/21/1996 12:34",
> "source": [
> "method line one with a \"comment\" in it.",
> "method line two with two tabs: \t\t",
> "method line three",
> "method line four",
> "method line five",
> ]
> }
> }
> ...well, sure. Not too shabby, I agree. Good idea!
>
> regards, Göran
>
>
Goran, what is the advantage of above array over this syntax:
builder addDelta: (
builder methodSourceChange
class: 'SomeClass';
protocol: 'some-method-category';
stamp: 'elder 3/21/1996 12:34';
source: thisFile nextBracketedString).
[method line one with a "comment" in it.
method line two with two plain tabs: "who needs a \t?"
method line three
method line four
method line five]
Details for solving case of few methods having unbalanced brackets [] ?
Just use thisFile nextBracketedStringWithEscapeSequence in this case.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20090312/1c1ea7d7/attachment.htm
More information about the Squeak-dev
mailing list
|