From: TRANS <tra...@gm...> - 2006-03-27 19:57:43
|
I'll brek this up into a couple of posts and focus one one subject per. First one simple and concrete... On 3/27/06, Clark C. Evans <cc...@cl...> wrote: > | Another is a simplier way to do non-indent based systax. If I have > | > | mymap: > | one: 1 > | two: 2 > | > | and convert it to non-indent form it's not as simple a just wrapping > | it in curly brackets becuase I also has to add a comma between each > | map element. The same applies to sequences. It would be better to have > | newlines serve for commas too. So one could just do. > | > | mymap: { > | one: 1 > | two: 2 > | } > > For many reasons we're definately not going to be *mixing* the in-line > formats (which are mostly JSON compatible) and our intended forms. The > productions are already complicated enough - I don't see how this does > anything but futher complicate them. This is actually a very simple modification. All it means is that a line break can also be used instead of a ','. Right now the above causes Syck to raise a syntax error, so as it stands it's just unused syntax possibility. The simplicity in this case is mainly with regard to human readability, although it also adds a very quick way to make a document indent independent. T. -- ( o- カラチ went BOOM // trans. / / tra...@gm... |