[gambit-list] explicit pp

Marc Feeley feeley at iro.umontreal.ca
Fri Jul 24 11:28:18 EDT 2009


On 24-Jul-09, at 10:55 AM, Stéphane Le Cornec wrote:

> It would be oh so much clearer to handle it this way:
>
>         (write `(manifest ,name
>                       (version ,version)
>                       ...) output)
>
> This would read back properly, but it is not pretty enough to be  
> human-
> readable. So I'm trying to have that cake and eat it too, pretty code
> and pretty output.

So what you really want is a parameterized pretty-printer where such  
formatting rules can be indicated.  That should be possible to add to  
the current implementation.  The biggest problem is the API.  What is  
the form of these rules?

Marc




More information about the Gambit-list mailing list