On 7/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >=20 > Tim: >=20 > > On another note, isn't there a module out there that reformats > > rebol code into pretty-print? >=20 > Carl and Volker have these two offerings: >=20 > http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=3Dclean-s= cript-h > eavy.r >=20 > http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=3Dclean-s= cript.r >=20 > [Though what the first one refers to as "a really messed up script" is > simply=20 > the author's choice to use a different indentation style to that recommen= ded >=20
Have not seen it this way, yes, you are right. I apologize. IIRC we discussed that script and if a pretty-printer could clean it. And %clean-script.r, well, after that its really messed up IIRC :) So i tried a patch with the goal to "clean it".=20 So in my view that script was "messed up". The difference between this pretty-printers is that %clean-script.r does not break lines, and %heavy-clean-script.r breaks on every bracket. Since putting things in line (pun intended:) is usually intentional,=20 %clean-script.r is usually the better choice. When the author had no, or "weird", intentions %heavy-clean-script.r may he= lp. It helped once when rebol saved some 100k with everything in one line. May help if you have lisp-style with lots of closing brackets on end of lin= e.=20 But then a weaker version, only splitting trailing brackets, would be bette= r. > by RT] >=20 > Also worth looking at -- previous discussions on ways to pretty-print REB= OL >=20 > code, plsu some earlier code: >=20 > http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-thread.r?m=3DrmlBQF= K >=20 > http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-thread.r?m=3DrmlHZF= K >=20 > Sunanda. > --=20 > To unsubscribe from the list, just send an email to=20 > lists at rebol.com with unsubscribe as the subject. >=20 >=20 --=20 -Volker "Any problem in computer science can be solved with another layer of indirection. But that usually will create another problem." David Wheeler -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
