## Re: [Yaml-core] State of the Onion

 Re: [Yaml-core] State of the Onion From: Clark C . Evans - 2001-11-30 03:19:41 ```| Well here's the idea I've had all day but couldn;t say until now. I have a | different proposal. I'd just like us to consider it. | | - { foo = bar, foo foo = 12:00, "quoted\n" = 3.1415 } | - [ 5, 7, 9] | - [ 3.14, foo bar, { time = 12:00 } ] | - [] | - {} Ok. I'm going to put on my psychic hat and guess that Brian doesn't like the @ and % indicators. Imagine the following two examples... --- -@ name , hr, avg, rbi -@ Mark McGwire, 65, .278, 147 -@ Sammy Sosa , 63, .288, 141 --- !org.clarkevans.vector-graphics.image - !.circle center: !.point % x=23, y=29 radius: 7 - !.line % x=2,y=4,h=23,w=19 Imagine three limitations on implict scalars: 1) they are one line only (previous limit) 2) they do not contain the equal sign 3) they do not contain the comma If we did this, we could drop the indicator all together.... --- - name , hr, avg, rbi - Mark McGwire, 65, .278, 147 - Sammy Sosa , 63, .288, 141 --- !org.clarkevans.vector-graphics.image - !.circle center: !.point x=23, y=29 radius: 7 - !.line x=2,y=4,h=23,w=19 It's a bit cleaner (not much). We pay for this simpler syntax with a wee bit of of look-ahead (exactly three tokens) but I don't mind this too much since it's limited to a single line. I can't think of why I'd use an equal sign... and I can quote in this case. Lastly, commas may be useful for things like someone's name.... "Evans, Clark", but once again, I can quote in this case... or better yet, just treat the name as a small sequence "as god had intended". Since we don't have the "spill" case, someone won't try to put a paragraph here (and be frustrated that the comma turns their paragraph into two chunks). So. We can do this... but we really must stick with the one line limitation... no spilling. Thoughts? Clark ```