2016-05-20 7:49 GMT+03:00 Yegappan Lakshmanan <[email protected]>:
> Hi all,
>
> I don't see much documentation for partial functions. Am I missing
> something? I see a few references to partials in eval.txt. Even the
> help tag for partials (:help partials) is missing.
>
> Thanks,
> Yegappan
>
> --
> --
> 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.

:h expr8 also does not talk that indexing a dictionary may create a
partial in place of returning what is there in a dictionary at the
given index. Some examples at :h function() are strange:

> The use of function() is not needed when there are no extra
> arguments, these two are equivalent:
>
>     let Func = function('Callback', context)
>     let Func = context.Callback

Above this text `context` *in no example* contains Callback key, so
user may think that like in some other language (cannot remember its
name) `var.func(1, 2)` and `func(var, 1, 2)` are the same things.

Also documentation states that `function(dict.Func, [arg], dict)` is
broken (because first argument is a partial with “the dict stored in
it” and “the {dict} argument is not allowed”), but this actually works
and can create a new partial with new dictionary.

-- 
-- 
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