Justin M. Keyes wrote:

> On Jun 15, 2016 7:58 AM, "Ken Takata" <[email protected]> wrote:
> >
> > Hi mattn and all,
> >
> > 2016/5/27 Fri 22:38:34 UTC+9 Ken Takata wrote:
> > > Hi mattn,
> > >
> > > 2016/4/18 Mon 0:30:19 UTC+9 mattn wrote:
> > > > Hi, Bram and list.
> > > >
> > > > Updated lambda patch to be applied for latest code.
> > > >
> > > > https://gist.github.com/mattn/5bc8ded21e1033c9c0ea8cd5ecbbce11
> > > >
> > > > This include examples for timer on help file. I'm thinking lambda()
> have cooperative to work with job/timer/channel.
> > > >
> > > > So I hope to add this into vim8. How do you think?
> > > >
> > > > Thanks to k-takata, haya14busa, and all of members on vim-jp.
> > >
> > > I have tested the lambda patch with the latest Vim and I found two
> problems.
> > >
> > >   1. garbagecollect_for_testing() was renamed.
> > >   2. Test_lambda_with_timer() fails on Cygwin. It seems that we need
> margins
> > >      as we do in test_timers.vim.
> > >
> > > Please check attached patch.
> > >
> > > I hope that the lambda patch will be merged in Vim 8.0.
> > > This makes filter(), map() and sort() easy to use.
> > > It also works nicely with job/channel/timer features.
> >
> > I have merged my patch into your patch, and also fixed that the function
> > declaration was not sorted in alphabetical order.
> > Please check the attached patch.
> >
> > Regards,
> > Ken Takata
> 
> If lambdas are merged, do we need partials? Why?

A lambda is for defining a function (usually a short one, without giving
it a name).  A partial is about binding arguments (and in the Vim case a
dict) to a function.  They supplement each other.


-- 
hundred-and-one symptoms of being an internet addict:
97. Your mother tells you to remember something, and you look for
    a File/Save command.

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