Page 1 of 1

Quotes for literal strings

Posted: Wed Jul 19, 2017 11:31 am
by Dude
This is so messy to read:

Code: Select all

Debug ~"\"Hello World\""
Wouldn't it be cleaner to use \q instead, like this:

Code: Select all

Debug ~"\qHello World\q"
What do the masses think?

Re: Quotes for literal strings

Posted: Wed Jul 19, 2017 3:38 pm
by kenmo
I agree! +1
No big reason, just \" makes strings less readable than \q.

Obviously the team wouldn't REMOVE \" but it would be nice to add \q as an additional escape.

This wouldn't break ~"\q" in existing code, because ~"\q" currently raises a compiler error.

Re: Quotes for literal strings

Posted: Wed Jul 19, 2017 5:47 pm
by wilbert
A lot of computer languages use \" .
It would be confusing to use some none standard alternative.