Re: Interpreter Mod We Can All Get Behind
- Posted by Gary Shingles <eu at 53??i.co.nz> Nov 22, 2007
- 592 views
CChris wrote: > Other languages use """ (three double quotes) to start and end a verbatim > string > (ie no escape chars, line breaks, spacing and tabbing count). This is missing > in Eu. That's something I sometimes miss from Perl, the 'heredoc' syntax so that you can say (in Perlese): $text = <<"EOF"; This is the text. This is another line. Etc. EOF The difference with Euphoria is that you would never be able use the variable substitution possible in Perl so I don't often miss it in Euphoria. The other option I liked was the one Derek mentioned from D, automatically concatenating sequential character strings. Though I could see the possibility of a few missed spaces between words, but that would be a minor coding issue. eg "The quick brown fox" "eats lazy dogs for breakfast" is "The quick brown foxeats lazy dogs for breakfast" I do that with & concatenation anyway though That syntax doesn't really solve the variable substitution issue though too, so you would end up using sprintf with & anyway (unless the interpreter could recognise sprintf as a string, but that would get messy). Gary