bn wrote: Sun Jul 18, 2021 11:57 pm
The IDE cannot warn you since for the IDE you set a custom property. And custom properties can perfectly be named "botton".
But many typos are caught if you turn strict compilaton mode on for the script editor. The downside is you have to declare your variables.
Hi Bernd - i definitely
always have strict compilation on, having come from strongly typed environments that's a bit a safety i prefer. My right hand tends to touch type just a bit faster than my left(!) and it's not unusual that i misspell things (translocation of letters), so when it comes to variables i prefer this to be on.
Custom props are a bit different as these are not declared and I'll be honest i wouldn't really care to do that in spite of this, as i've gown accustomed to the 'liveCode' way. However, although not that frequent, issues like this occur frequently enough that quite a few hours of debugging have gone into identifying that 1 errant letter that was mis-typed.
Sadly 'warnings' (not errors) don't exist in the liveCode IDE, but it would be nice if it would if say what is perceived as custom property that was only 1-2 letters different from reserved keywords generated a cautionary warning that you could safely ignore/dismiss.
Maybe one day the IDE will cater for both warnings and errors! Until then, it's just me talking nonsense
