Alan Manuel Gloria: > We need a variety of functions > that format blocks in various ways, probably built in some kind of > compositional (monadic?) style. It would be really convenient to be > able to direct or at least hint how to format various stabdard forms - > define should look very different from case.
I agree on both points: 1. It'd be useful to "try out" various formats, and then have some system rank and pick the "best" one per some criteria. 2. I think "hint" is the right term, as long as it has a decent default & can be controlled by the user. > Admittedly my ideas are pretty vague - I think we should focus first > in stabilizing the spec, then turn to these ideas. we should probably > study existing s-expr prettifier designs. Agree. I quickly whipped up iformat years ago; it's not great. I suspect a *good* pretty-printer is tricky. I just switched it to be a simple filter, so you can create its Scheme version: make iformat.scm and run it: guile iformat.scm < ugly > beautiful You can run "make itest" for a quick demo. > We could start with kennytilton's Cells library, just out of spite ^^ :-). --- David A. Wheeler ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Readable-discuss mailing list Readable-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/readable-discuss