Page 1 of 1

New syntax : parentheses

Posted: 13 Feb 2008 13:57
by jacky
Hey, what's up?
<pita>

Code: Select all

    + Scripting: Now you may enclose a function's arguments in brackets. 
      This is purely optional and without an function other than making 
      your scripting code more readable if you are used to bracketing 
      arguments. 
      For example, these work identical: 
        ::copytext "sep=;"; text <clipboard>, 600, 400, Clipboard; 
        ::copytext ("sep=;"); text (<clipboard>, 600, 400, Clipboard); 
Couple of little things about that :

- Most people may find it odd that a space must be put after the command's name, as it's usually not required: function(param);

- I would recommend to use "parantheses" instead of "brackets", only because the later term refers to many things: ( ), [ ], { }, < >
</pita>

Re: New syntax : parentheses

Posted: 13 Feb 2008 14:03
by admin
Yo, fully agreed. And fixed. Merci!