On Mon, Jul 16, 2012 at 8:05 PM, David A. Wheeler <dwhee...@dwheeler.com> wrote: > In addition, I've already started on a reverse translator (though it doesn't > do much yet).
As to that, I have some ideas for how to structure the tool. Internally, functions return a list of strings, with each string containing exactly one line. This should make it simpler to use "." in indentation - if we are in a context where it "makes sense" to put "." - such as in cond/case clauses. 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. 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. > >> > Have y'all considered a reverse translator that reads >> > fully-parenthesized lisp or scheme and emits clean and clear >> > parens-and-prefix-free code? Perhaps we should mirror the top 20 lisp >> > projects in our readable style, sucking in new commits as they happen, >> > and see if newcomers to lisp find our mirrors useful. Does this seem >> > like a viable strategy? > > That's an interesting strategy. In addition, we could set up a little web > service where people could upload or paste in traditional expressions, and > get the pretty version in return. We could start with kennytilton's Cells library, just out of spite ^^ Sincerely, AmkG ------------------------------------------------------------------------------ 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