Nikolay Pavlov wrote:

[...]

> >> The difference is a space between a lambda expression and its arguments.
> >> A similar example is here:
> >>
> >>    let x = function('sin') (1) " E15
> >>    let x = function('sin')(1)  " OK
> >>
> >> I'm not sure this is intended.
> >
> > Yes, there should not be a space between the function and the (args).
> 
> Space is OK if “function” is an identifier (variable or function
> name). E.g. `echo string (5)` displays `5`, `let String = function
> ('string') | echo String (5)` also is OK. But, I guess, fixing this
> will make some :echo calls fail.

What I mean is that one should not put a space before (args).  That
makes it easier to read, it is clear that it is a function call.

The space is allowed in some places, and that won't change because of
backwards compatibility.  But for new syntax I prefer to disallow it.

-- 
Q: Is selling software the same as selling hardware?
A: No, good hardware is sold new, good software has already been used by many.

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