Re: Interpreter Mod We Can All Get Behind

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

c.k.lester wrote:
> 
> Bernie Ryan wrote:
> > And How about a line continuation symbol
> > 
> > Example:
> > 
> >   "This is a long string that I want to continue on the next line __
> >    so I can just use the two underscores to continue it on this line"
> 
> Why would you want that? Euphoria already ignores line breaks in code
> so you can do something like
> 
>    "This is a long string that I want to continue on the next line "
>    & "so I can just use the two underscores to continue it on this line"
> 
> For string sequences, just use an editor that has word wrapping. :)
> 
> Besides, it would be a pain to implement. What if my string sequence has
> a double underscore in it?

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. Others use %" whatever " for the purpose. I'd rather save % for when there
will be macros of some sort, but both would be fine with me.

Also U"<unicode string>" would be desirable too. Some variatuins on U would give
more control over the unicode encoding that's desired. For instance U for UTF8,
uU for UTF16LE, Uu for UTF16BE, uUU for UTF32LE and UUu for UTF32BE? Just
suggestions.

Otherwise, what is simpler than breaking the string and using & to stitch the
lines togeter? For once, Eu isn't needlessly verbose there.

CChris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu