Ralph Johnson wrote:
On Thu, Mar 12, 2009 at 9:35 AM, Göran Krampe goran@krampe.se wrote:
- Not so good handling of Strings. This was why I was thinking about
netstrings. In fact, this one is a killer in some ways, if we can't have CRs in the file then we surely can't get "readable code". Yaml has "literal blocks" which means we can easily have readable code.
You are thinking of a method as being the smallest element. Instead, make a method be a sequence of lines. A line is basically everything between a CR. This will make it a little less readable, but not too much.
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