Optional keywords?

Bernard Devlin bdrunrev at gmail.com
Sat Dec 24 12:42:20 EST 2011

I've come across it, but to be honest, I really like the verbose
real-language nature of Livecode.  I am a touch typist, so for me it
really is a question of programming as talking to myself.

One of the main things I wish LC had was named parameters, like in
Python, where one can call a function with something like this:

sum(value1=3, value2=5)

I like how clear it makes things when one sees a function being
called, especially when a function has many parameters.

Also, one can have default values specified in the declaration of a
function in Python.  That's also handy.


On Sat, Dec 24, 2011 at 5:26 PM, J. Landman Gay
<jacque at hyperactivesw.com> wrote:
> On 12/23/11 9:21 PM, dunbarx at aol.com wrote:
>> Is this well known?
>> on mouseUp
>>   put "ABCDE" into foo
>>   answer char 2 foo
>> end mouseUp
>> This works for all chunk types. But where is the keyword "of" (or
>> "in") at line 3? It seems to be optional. Has this always been so?
>> Are there other keywords that do not matter?
> There are others but I can't remember which they are. I think it's probably
> a case of the engine being so forgiving, and the behavior depends on where
> in the structure the omission occurs. The same is true for some unquoted
> literals which can work at the ends of lines but not in the middle.
> --
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

More information about the Use-livecode mailing list