SPUG:Here documents

Bill Campbell bill at celestial.com
Fri May 2 18:11:36 CDT 2003


On Fri, May 02, 2003 at 03:33:18PM -0700, SPUG-list-owner wrote:
>On Fri, May 02, 2003 at 03:17:01PM -0700, Bill Campbell wrote:
>> On Fri, May 02, 2003 at 01:15:15PM -0700, Brian Hatch wrote:
>> ...
>> >I think I'll just stick with qq( ... ) -- I love '%' in vi,
>> >and that'll mostly do what I need.
>> 
>> That's why my shell scripts have funny comments #{ and #} on things like
>> case and if statements (and python's lack of braces and strange treatment
>> of whitespace is why I stick to perl :-).
>> 
>> Bill
>
>Clever! You've turned the "match braces even within comments" bug
>into a feature!

Yup!

I wish I had the vi editor back when I was writing ALGOL 60 code.  Matching
ALGOL's BEGIN and END statements was a fair PITA.  One of my first text
processing programs was a prettyprinter for ALGOL to re-indent programs
after changing blocks.  Actually vi wouldn't have done any good then since
all the programs were entered either from 80 column punch cards or paper
tape on ASR-33 TeleTypes at 110baud.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``Good luck to all you optimists out there who think Microsoft can deliver
35 million lines of quality code on which you can operate your business.''
   -- John C. Dvorak



More information about the spug-list mailing list