Re: Yapp (yet another pretty print)
- Posted by Juergen Luethje <j.lue at gmx.de> May 20, 2003
- 439 views
Hello Pete, you wrote: > On Mon, 19 May 2003 22:35:58 +0200, Juergen Luethje <j.lue at gmx.de> > wrote: > >> >> Hello Pete, you wrote: >> >>> I've just cleaned up my version of pretty print. <snip> > If you use prnt(object,{1,0}) it should cram almost to the character, > but without mucking up indent and/or line wrapping too much. > I don't want to bash Rob's pretty print, but I wrote this precisely > because his version didn't put enuf on one screen for my taste. > I've put a space after each comma, do you want an option to drop that? I personally like it the way it is. With a space after each comma, I can perceive especially big tables faster and more reliable than without. Maybe other people want an option to drop that. On the other hand, to keep it simple, IMHO there shouldn't be too many options. <snip> >>> global procedure prnt(object o, object nest) >> ^ >> I changed this to pp. >> >>> prntEx(1,o,78,23,0,nest) >>> end procedure > Is there a name clash or was that just personal preference? Just personal preference. "pp" was on the tip of my tongue as acronym for "pretty print", but mainly I like it, if frequently used names are short and simple to type. >> I don't have the time to make extensive tests at the moment. But I >> will use your version on a regular basis, instead of the official >> pretty_print(), to gather some experience. > Cuh! You've had nine hours already! You just can't get the staff these > days )) You can say that again, it's scandalous! )) > Seriously, though, thats _exactly_ what I want you to do. Okey-dokey. > Thanks, > Pete Best regards, Juergen -- /"\ ASCII ribbon campain | |\ _,,,---,,_ \ / against HTML in | /,`.-'`' -. ;-;;,_ X e-mail and news, | |,4- ) )-,_..;\ ( `'-' / \ and unneeded MIME | '---''(_/--' `-'\_)