Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
You choose
#20
(04-09-2025, 06:56 PM)bplus Wrote: Really we have to spell it out for you? 0 = False

Besides True = -1 does not cover all things Not False and I am sure we don't want to see the list of all things Not False Big Grin

Perhaps False$ = "" ?
Making False a string seems like an unnecessary complication.

Is this a debate of preferences or is the QB64PE team looking to do away with _TRUE / _FALSE ? 

Since under the hood, _TRUE and _FALSE are integers -1 and 0, why not just add a simple option to the IDE, a checkbox "Display _TRUE / _FALSE as numbers" and when it's checked, it automatically replaces all _TRUE / _FALSE with -1 & 0 ? The only problem is that it's irreversible - unchecking it, it won't know which -1s & 0s to replace again with _TRUE/_FALSE, LoL. 

Or perhapse under the hood it stores anything that was entered as _TRUE / _FALSE as a special token, so that it can change back & forth? 

Really, I prefer the IDE to let you configure your options so that you can view the code according to your preferences, rather than be forced to endure someone else's. It's like how in C & JavaScript some people prefer the "Egyptian" style of putting the opening curly brace at the end of the previous line and others want it on its own line. I know some people like code to be as stripped down as possible (like C syntax) and others like it more verbose (like Python) but it's 2025, shouldn't we be able to choose our own syntax where our tools "render" the code to our liking on the fly? 

I realize this is a longer reply than you probably expected or wanted but this kind of discussion opens that debate!  Big Grin
Reply


Messages In This Thread
You choose - by eoredson - 04-08-2025, 01:08 AM
RE: You choose - by RhoSigma - 04-08-2025, 01:15 AM
RE: You choose - by eoredson - 04-08-2025, 01:31 AM
RE: You choose - by Pete - 04-08-2025, 01:42 AM
RE: You choose - by eoredson - 04-08-2025, 01:53 AM
RE: You choose - by eoredson - 04-08-2025, 02:48 AM
RE: You choose - by Pete - 04-08-2025, 03:31 AM
RE: You choose - by SMcNeill - 04-08-2025, 03:33 AM
RE: You choose - by Pete - 04-08-2025, 03:39 AM
RE: You choose - by SMcNeill - 04-08-2025, 04:14 AM
RE: You choose - by PhilOfPerth - 04-08-2025, 04:55 AM
RE: You choose - by Ikerkaz - 04-08-2025, 09:15 AM
RE: You choose - by bplus - 04-08-2025, 11:44 AM
RE: You choose - by eoredson - 04-09-2025, 12:53 AM
RE: You choose - by Pete - 04-09-2025, 01:04 AM
RE: You choose - by madscijr - 04-09-2025, 04:14 PM
RE: You choose - by bplus - 04-09-2025, 04:44 PM
RE: You choose - by madscijr - 04-09-2025, 04:51 PM
RE: You choose - by bplus - 04-09-2025, 06:56 PM
RE: You choose - by madscijr - 04-09-2025, 07:11 PM
RE: You choose - by Pete - 04-09-2025, 07:43 PM
RE: You choose - by madscijr - 04-09-2025, 09:09 PM



Users browsing this thread: 1 Guest(s)