On Wed, Dec 18, 2019 at 11:10 PM Gary Johnson <[email protected]> wrote:
>
> On 2019-12-18, Andy Massimino wrote:
> > Please don't change endfunction/endif/endwhile... it makes it hard for 
> > plugins
> > like match-up to make % work.  Also complicates things for very little 
> > benefit,
> > at best saving a tiny amount of typing, at worst makes it easy to lose 
> > track of
> > scopes.
>
> +1

+2. Replacing them all by a single "end" or "}" statement might make
it harder to spot a missing close statement, it would require a
complete rewrite of the matchit plugin, and all that for little
benefit. Do we have a common end bracket for (, [ and { ? No. So why
have one for if, for, while and func? OTOH, IMHO what we have now is
clearer than (for the sake of less typing) replacing them by fi, rof,
elihw and cnuf (or noitcnuf).

If a single end statement had been wanted, Vim could have used
begin..end statement brackets à la ALGOL and required the use of a
single imperative statement or begin..end block inside if, while, etc.
statements; but it didn't take that route and IMHO it's too late now.

Best regards,
Tony.

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAJkCKXsaq9NWFwKhFfJ3fTAibn2xXoY13W59U%2BR53MHdNqK%3DUA%40mail.gmail.com.

Raspunde prin e-mail lui