Closed macMikey closed 2 years ago
LCB style guide indicates that the first char of a variable indicates scope (t, p, ...), so if using that convention then a variable will be at least 2 char and the first will be lower case.
Here's the code I added:
public handler onTest()
variable i as Integer
end handler
Here's the compile result:
6:37 PM: Compiling module /Users/milby/GitHub/livecode/extensions/widgets/pinkcircle/pinkcircle.lcb 6:37 PM: /Users/milby/GitHub/livecode/extensions/widgets/pinkcircle/pinkcircle.lcb:50:11: warning: All-lowercase name 'i' may cause future syntax error variable i as Integer ^
6:37 PM: Launching in Test Window
I made a change to the code to verify that it did compile.
I know, and if I was to adhere to every style guide for every language I use, instead of stealing the best ideas from each... It's interesting that yours launched the test window, when mine didn't.
Are warnings also supposed to prevent a compile/build? They do. Example: