10-17-2022, 07:40 AM
(This post was last modified: 10-17-2022, 07:53 AM by mnrvovrfc.
Edit Reason: TL;DR as usual
)
(10-16-2022, 08:48 PM)SMcNeill Wrote: Yucky yuck yuck!One more vote for "yuck", it's too confusing. Some people complain about the syntax, let's not give them more reasons to.
Look close at your code samples. Count the conditions you check against for point (-1, -1)...
The first does 3 checks for y, 3 checks for x. The second does 9 checks for y, 9 checks for x.
6 conditional checks vs 18.. How much slower is the multiple select cases going to be??
Yucky yuck yuck!
:
Do you *really* want to add that type of overhead to your program?
There was a code example which enrolled "SELECT CASE... END SELECT" into three or four subprograms which were called in turns, by a big "SELECT CASE... END SELECT" in the main program. That is the highest level of achievement the majority of BASIC programmers would care about that construct.
Also... tuples... make me shiver. Please let's not make QB64PE's BASIC look more like Python.
(10-17-2022, 05:21 AM)SMcNeill Wrote: But, with that said, I'd encourage Pete -- or whomever wants to, including you -- to work up the changes yourself and push them into the repo. We always try and support new developers, and this really doesn't seem like it'd be overly complicated for someone to use as a break-in exercise to learning and interacting with the qb64pe.bas source.The problem is I would have to create an account with Github which is a big fat nope for me. Half the web browsers don't work with that stupid site. I only want to visit that place only to be able to download QB64PE or any other thing that interests me. Otherwise it's an impressive mess, got there much faster than Sourceforge which is sad. Another problem is that my coding skills in C/C++ aren't really up to the standards of "pushing them up into the repo". Not that I'm embarrassed about coding something, but I have never tried to do anything with C++ in decades, literally. Only in C with "stdio", "stdlib" and rather simple stuff like that.
Just because none of the current devs would be interested in spending their precious free time to add or make a suggested alteration, that doesn't mean you can't make it yourself. *That's* the beauty of open-source programming.
If my coding skills were quite good, however, I wouldn't have cared about this programming system. There is an open-source music program I would have liked to fix, because it no longer runs on Windows10, in one of my dreams...