2013/6/18 Bram Moolenaar <[email protected]>:
> I do not like the idea of accessing functions with arbitrary names.
>
> I would rather also disallow:
>
>   let dict['/foo'] = function('tr')
>
> Would that break any plugin?

I also use this syntax.

This syntax is useful, for example,

Sinatra like framework:
function! s:get['/']()
  return 'hello'
endfunction
function! s:get['/user/:name'](name)
  return 'hello ' . a:name
endfunction

Another example: Rspec style testing framework:
function! s:it['should be true']()
  call s:assert(1 + 1 == 2)
endfunction

Please rethink.

--
thinca <[email protected]>

-- 
-- 
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/groups/opt_out.


Raspunde prin e-mail lui