From: dblack@... Date: 2003-01-16T01:05:19+09:00 Subject: Re: ruby-dev summary 19198-19345 Hi -- On Thu, 16 Jan 2003, Dave Thomas wrote: > Matt Armstrong wrote: > > I just though, why not "<<|FOO". In other words, the '-' in there > > doesn't serve much purpose. > > > > s = <<|FOO > > |this > > | is > > | my > > | text > > FOO > > > > > > In fact, neither does the 'FOO' > > s = <<|Now is the time > | For all good men > | to code Ruby > p s.length > > So any line that _doesn't_ start with the given delimiter (ignoring > leading whitespace) ends the string. That's the first variation on this idea that doesn't look cluttered and/or confusing to me. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav