it and explicitVar?

Malte Brill revolution at derbrill.de
Thu Nov 22 16:42:52 EST 2012


Even though explicit vars (or strict compile mode in the prefs) is considdered to be a major headache by some, I have never looked back since I started to make this a prerequisite in all the code my company writes for others. When we have people writing code for us, we also require it to compile in strict mode, otherwise the code is not accepted. It adds little extra work, but helps tremendously when debugging or refactoring. I can only encourage people to use strict compile mode. You will quickly find all typos and it actually makes for cleaner code. I would even want the engine to be (optionally) a little stricter and introduce typed variables (and global constants *sigh), well I might be one of only a few there, but wishful thinking never hurts. :-)

Cheers,

Malte



More information about the use-livecode mailing list