> Interesting. Do you have plan to suppot  keyword arguments?
> 
> ```
> call Log(10, base=10)
> ```

As I mentioned in a previous note, this has the disadvantage that the
name of the argument is exposed to callers.  Without keyword arguments
the argument name can be changed without side effects, it is only used
locally where the function is defined.  With keyword arguments one can
break callers.

Let's first have the optional arguments and keep passing them
positionally.  We only need a way to say that an argument is not present.
In Javascript you would pass "undefined".  We could use v:none.

-- 
CART DRIVER: Bring out your dead!
LARGE MAN:   Here's one!
CART DRIVER: Ninepence.
BODY:        I'm not dead!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui