"LiveCode Infinity": lexically-scoped variables and bytecode blocks

Dr. Hawkins dochawk at gmail.com
Tue Jun 7 15:37:14 EDT 2016


On Tue, Jun 7, 2016 at 11:27 AM, Mike Kerner <MikeKerner at roadrunner.com>
wrote:

> I respectfully disagree.
>

It all depends upon what you are doing.

I, by necessity, have layers of nested loops.  Not being able to exit an
outer loop (or, for that matter, to identify the companion beginning of a
control structure, takes odd contortions for the first and several minutes
at a time for the second.

Strong typing, even optional strong typing, would be a speed advantage when
repeatedly handling math, for example--if theVals[] will only hold integers
(e.g., pennies), and I regularly sum them, it's simply faster for the code
to know that they're integers instead of converting them.

And when you have not alternative but 10K+ lines of script, and handlers
that are unavoidably several hundred lines, being able to localize
variables is a Godsend; you don't have to worry about whether you used the
same obvious name elsewhere, and whether you'll get side affect.




-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462



More information about the use-livecode mailing list