From: Robert Klemme Date: 2004-03-31T16:19:23+09:00 Subject: Re: proposal - delayed intropolation in heredoc "Simon Strandgaard" schrieb im Newsbeitrag news:pan.2004.03.30.20.09.50.501@adslhome.dk... > On Tue, 30 Mar 2004 14:36:46 +0200, Robert Klemme wrote: > > "Simon Strandgaard" schrieb im Newsbeitrag > > news:pan.2004.03.29.15.49.45.527862@adslhome.dk... > >> On Mon, 29 Mar 2004 18:38:20 +0200, Robert Klemme wrote: > >> > "Simon Strandgaard" schrieb im Newsbeitrag > >> > news:pan.2004.03.29.15.12.59.760809@adslhome.dk... > >> >> yet another crazy proposal from me.. read on, am I crazy? > >> > > >> > Without reading on: yes, you are. But aren't we all? :-)) > >> > > >> > >> I was afraid of that. If you are a genius then its ok to be crazy, > >> except that I am not a genius, then its not ok ;-) > > > > Hey, we can just pretend we're geniusses. If all are crazy anyway then > > nobody'll notice. :-) > > > > I prefer being my self, rather than pretending to be somebody else ;-) Well, you can be many people at the same time. => MPD :-) > >> Good idea as long its spaces. I wonder how tabs can be handled properly. > >> Should tabs be converted to 8 spaces? Should tabs be sliced? > > > > I'd just place the general rule that exactly the whitespace that precedes > > the terminator is removed from lines inside the here doc, if present. So > > if there's a tab in front of the terminator but the lines of the here doc > > start with spaces then these are not removed. Don't you think this is > > sufficient? > > > > Not sure if I understand your idea on how to deal with tabs. > I seems kind of kludgy, sorry. Example (with some special chars shown): str =<