On Sun, Nov 6, 2011 at 8:33 PM, Ian Lynagh <igloo@earth.li> wrote:
On Mon, Nov 07, 2011 at 01:13:23AM +0000, Duncan Coutts wrote:
>
> So maybe we should just conclude that pretty printing should be left
> associative, building from the left.
To clarify, Duncan and I are now thinking that as pretty builds
left-to-right strings, perhaps it is natural that the operators in
a <+> b <> c <+> d <> e <+> ...
should be left-infix, as it is natural to read this as "a then b, then
c, ..."
I'm not sure I follow.
It would seem that accessing a then (b then ...) would require me to have it associated to the right, otherwise I have
(((((...(a then b) then c) and I can't even start figuring out what I'm going to do until I crawl my way down to the bottom.
-Edward