Re: Interpreter Mod We Can All Get Behind

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 smile

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu