From: Oren Ben-K. <or...@ri...> - 2001-12-12 02:32:53
|
Brian Ingerson [mailto:in...@tt...] wrote: > > > | - !map &001 ? ! &002 \ > > > | multi line > > > | key > > > > Ugh!!! I'd rather give up on the whole idea first. There's > simply no point > > to allowing this. > > Well I can't believe I'm defending this, but here goes: :-) > The thing I realized is that you don't need any special rules > to implement > what you were asking for. Here is the entire rule: > > "If a sequence entry is a map, you can always collapse the > first line of the > map to the sequence line above." Well, I agree with this in principle. I just think that it only makes sense to do so if the map has no properties of its own. The driving force, after all, is readability, and if there are such properties you get a rather unreadable format. So: > 5) The _recommended_ use of this would be for Oren's cases. > (singletons) > 5a) It would not be _recommended_ for multi entry maps. 5b) It would not be recommended for maps with properties. > 6) I can't think of any situations that make this not work. > If there are, let's scrap it. I couldn't think of any... > 7) We can always add this later. > 7a) As long as we don;t allow ': ' in implicit scalars (I > don't think we do > now anyway) We don't. Neither ': ' nor '= ' may appear in any implicit leaf. Have fun, Oren Ben-Kiki |