[ENH] (?) Pretty Printing

demiourgos at smalltalk.org demiourgos at smalltalk.org
Thu Jan 27 07:19:16 UTC 2000


On Thu, 20 January 2000, Stephan Rudlof wrote:

> 
> Doug Way wrote:
> > 
> > Basically, I really like the idea of pretty printing (standard
> > formatting), but I think the pretty printing in Squeak just isn't quite
> > "there yet".  If it were further improved, I'd probably use it all the
> > time.
> > 
> > I'd look forward to any improvements that Les and/or Dean might make.
> > (Heck, maybe I'll work on it at some point.)  Of course, an ideal pretty
> > printing format is a somewhat subjective thing, and if someone is actually
> > moving it forward, it'd be interesting to have some discussions on
> > readability, indentation, etc., on this list.
> 
> I think there needn't be just *one* ideal format, but such a discussion
> could give hints how to format to get mostly readable code with such a
> formatter - and not readable code should be a hint to think about the
> programming style then.

What about the idea of having a standard pretty printer, but using
stylized comments to direct it to format things in a specified way
rather than following its rules?  Perhaps the "stylized comments" might
adopt some of the verbs from XSL or HTML?

 --jtg

> 
> I would like to have some parameters which control the behavior of a
> pretty print formatter and allow different styles of formatting:
> preferably with very few good default styles.
> 
> I also would like to have a _standard_ formatting style resulting from a
> deep discussion to use for code examples in e.g. eMails, tutorials and
> books. Then there would coexist _one_ commonly used style and the
> alternative styles for individual use.
> 
> 
> P.S.: 'I would like to have ...' denotes wishes, not claims.
> -- 
> Stephan Rudlof (sr at evolgo.de)
>    "Genius doesn't work on an assembly line basis.
>     You can't simply say, 'Today I will be brilliant.'"
>     -- Kirk, "The Ultimate Computer", stardate 4731.3

______________________________________________________
Jan Theodore Galkowski      www.smalltalk.org/ 
    http://www.scguild.com/usr/1707I.html 
demiourgos at smalltalk.org  www.marssociety.org/
**********************************************
PGP Key Fingerprint: 2757 F86D AA51 677D 38D7  
                     964B 9A8D 7852 A494 3790
**********************************************
Get my Public Key from my home page at:
   http://home.stny.rr.com/algebraist/
**********************************************

______________________________________________

Get free e-mail at http://www.britannica.com





More information about the Squeak-dev mailing list