Suggestions to triple quoted strings proposal
stepan.koltsov at gmail.com
Wed Dec 13 18:50:33 PST 2006
On 12/13/06, Bob Ippolito <bob at redivi.com> wrote:
> On 12/13/06, Stepan Koltsov <stepan.koltsov at gmail.com> wrote:
> > I've read proposal of triple quoted strings at
> > And I have two suggestions.
> Eh. String should just grow a method to do that. Literals are literals
> and should be treated as such.
We can call them "heredocs". It is term from bash man page.
I've found two operators: "<<" and "<<-" in bash man page. "<<"
ignores first newline. "<<-" also (surprise!) strips "all leading tab
characters from input lines and the line containing delimiter" (from
bash javadoc). From that man page:
This allows here-documents within shell scripts to be indented in a
Wow! This is what I want for ES4.
Example of bash script:
if true; then
cat <<- FEOF
cat << EOF
I'm going to dig Python libraries to find the "most common use-case".
More information about the Es4-discuss