It is currently Mon Jul 06, 2020 5:50 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Literal string error message
PostPosted: Sun Jun 28, 2020 1:55 am 
Offline
Addict
Addict

Joined: Thu Apr 18, 2019 8:17 am
Posts: 893
(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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Literal string error message
PostPosted: Sun Jun 28, 2020 4:43 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jul 25, 2005 3:51 pm
Posts: 3710
Location: Utah, USA
-1

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

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Literal string error message
PostPosted: Sun Jun 28, 2020 6:24 am 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 1114
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, ...

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
 Post subject: Re: Literal string error message
PostPosted: Sun Jun 28, 2020 7:13 am 
Offline
Addict
Addict

Joined: Thu Apr 18, 2019 8:17 am
Posts: 893
I don't mind either way, but as long as it mentions the limit is for the IDE/editor/source code.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye