> On Jul 8, 2016, at 2:48 PM, Monte Goulding <mo...@appisle.net> wrote: > > This is all great fuel for the scripting style panel at the conference. Also > we have: > > - strict compilation
On some days I need this a lot. > - being even stricter by also declaring repeat loop iteration variables (I do > this) One might interpret the repeat as the declaration. > - declaring variables at the top of the handler or in the block they are > used. Ali and I do the latter and Peter B thinks it's poor style because we > don't have block scoped variables. I usually write small handlers so it doesn't matter, but in a recent project I wrote some very long handlers and I switched to your way to stay organize and document. (I probably should have sat back and organized my thoughts and used small handlers.) I'm assuming "block" in a casual sense of a blank line or two and a line or two of comments followed by code. Are there some potential problems in declaring variables this way? > - anything else we can come up with I'm sorry I won't be there to throw candy when style suggestions seem legalistic. (Don't tell Richard and Ken, but I often use naming conventions for handlers over a few lines, and even sometimes for tiny ones. I guess I'm being won over as I get older. I had thrown candy in light-hearted protest against their talk on naming conventions, back in Monterey, causing a bit of confusion.) Dar _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode