Göran Krampe <goran <at> <a href="http://krampe.se">krampe.se</a>> writes:<br><br>> <br>> Mmmmmm, you mean for example in an array like:<br>> <br>> {"delta": {<br>> "method-source-change": {<br>
> "class" : "SomeClass",<br>> "protocol": "some-method-category",<br>> "stamp" : "elder 3/21/1996 12:34",<br>> "source": [<br>
> "method line one with a \"comment\" in it.",<br>> "method line two with two tabs: \t\t",<br>> "method line three",<br>> "method line four",<br>
> "method line five",<br>> ]<br>> }<br>> }<br>> ...well, sure. Not too shabby, I agree. Good idea!<br>> <br>> regards, Göran<br>> <br>> <br><br>Goran, what is the advantage of above array over this syntax:<br>
<br>builder addDelta: (<br> builder methodSourceChange<br> class: 'SomeClass';<br>
protocol: 'some-method-category';<br>
stamp: 'elder 3/21/1996 12:34';<br> source: thisFile nextBracketedString).<br>
[method line one with a "comment" in it.<br>method line two with two plain tabs: "who needs a \t?"<br>method line three<br>
method line four<br>method line five]<br><br>Details for solving case of few methods having unbalanced brackets [] ?<br>Just use thisFile nextBracketedStringWithEscapeSequence in this case.<br><br><br>