Page 1 of 1

Literal string error message

Posted: Sun Jun 28, 2020 1:55 am
by BarryG
(Not a bug in the true sense, but also not a doc issue because the IDE shows the message).

In reference to the error message about long strings in the IDE ("A literal string can't be bigger than 8192 characters"), I suggest this be changed to something more specific and less confusing such as "Hard-coded strings in the IDE cannot be larger than 8192 characters".

Reason for this report is because it can lead some people to mistakenly think strings cannot be over 8 KB in their apps (see thread starting here -> viewtopic.php?p=556467#p556467), which is not true because in reality they're unlimited. This quick and easy change would remove the ambiguity. Thanks.

Re: Literal string error message

Posted: Sun Jun 28, 2020 4:43 am
by Demivec
-1

I think 'hard-coded string' is less clear than 'literal string'.

Re: Literal string error message

Posted: Sun Jun 28, 2020 6:24 am
by Josh
I think 'literal' is a common word in programming and should be familiar to every programmer.

345 is a literal
3.141592654 is a literal
"I am a literal" is a litral
Wikipedia wrote:In computer science, a literal is a notation for representing a fixed value in source code. Almost all programming languages have notations for atomic values such as integers, floating-point numbers, and strings, ...

Re: Literal string error message

Posted: Sun Jun 28, 2020 7:13 am
by BarryG
I don't mind either way, but as long as it mentions the limit is for the IDE/editor/source code.