[erlang-questions] Strings as Lists
Tue Feb 19 15:39:03 CET 2008
> There really is no programming language which handles "textual things
> textual things" terribly well.
What's wrong with heredocs, like ruby or sh has?
this is some text
"this is some more" text
this isn't ugly text at all
You can put any token where the EOM is, and that's what finishes the
string. If you want to have nice indentation, you can use <<-EOM, and
then the EOM can be indented. Vim recognizes the tag that you use,
and switches to that language, if it exists, so you can do <<HTML, and
then it uses html highlighting.
What are the problems with this style of string?
More information about the erlang-questions