From: Tom Sawyer Date: 2003-01-17T08:36:52+09:00 Subject: Re: ruby-dev summary 19198-19345 On Thursday 16 January 2003 03:16 pm, Mauricio Fern�ndez wrote: > No matter what, it seems here-docs would become more complex and I don't > think matz will finally make it. then i suggest this: let us LET HERE DOCUMENTS BE. they are an adoption (from Perl?), are they not? instead let's work the idea into the "Ruby Way". and we can do this in, what i think is, a very elegent manner akin to the indented terminator of here documents: non-substitution: %q-|foo | bar with-substitution: %Q-|foo | #{Time.now} of course we have our little shortcut for the later: %-|foo | #{Time.now} and, how nice! we can use any character we like (except a blank space) %-)foo ) bar the trick of course is in the - dash, which obviously i stole from <<-HERE. the only draw back to this, mind you is that: %Q-this- dosen't fly. but that's one sinlge character that i think we can live without it. -- tom sawyer, aka transami transami@transami.net .''. .''. . *''* :_\/_: . :_\/_: _\(/_ .:.*_\/_* : /\ : .'.:.'. .''.: /\ : ./)\ ':'* /\ * : '..'. -=:o:=- :_\/_:'.:::. | ' *''* * '.\'/.' _\(/_'.':'.' : /\ : ::::: = *_\/_* -= o =- /)\ ' * '..' ':::' === * /\ * .'/.\'. '._____ * | *..* : |. |' .---"| * | _ .--'| || | _| | * | .-'| __ | | | || | .-----. | |' | || | | | | | || | ___' ' /"\ | '-."". '-' '-.' '` |_. ------------------------------------------------------------