Inconsistent comma requirements

Paul Dupuis paul at researchware.com
Sat Jun 24 13:05:49 EDT 2017


On 6/24/2017 11:37 AM, Richard Gaskin via use-livecode wrote:
> Two questions:
>
> How many of you have never before known that commas are optional
> between definition arguments?

I discovered this in LC6.7.11 only about 2 months ago and was very
surprised. I had expected that separating arguments by commas would be a
requirement
>
> For those who've known about this, were you confused to discover that
> this only works for definitions but not calls? 

I see the absence of required comma in handler definitions almost as a
"bug" in that is increases the risk of making an error. If I have
composite variable names, like 'thisParam' and I accidentally type it a
'this Param'  I now have 2 parameters for my handler where I had
intended only 1.

Unrelated aside: My biggest wish for an IDE script editor improvement
would be for a popup list of previously used variables - even if it only
listed variables you explicitly declared via a Global or Local
statement. There are so many time I am write some code and I cant
remember what I called something 100 lines previously and have to scroll
up and find it and scroll back to where I am editing.







More information about the use-livecode mailing list