Hi Bram, 2020/1/3 Fri 19:02:13 UTC+9 Bram Moolenaar wrote: > > > Yasuhiro Matsumoto wrote: > > > Why you don't use { ? > > I know this will trigger a discussion. Nearly all languages use blocks > ending with "}". It's much easier to see where a block ends that way > than using "endif", "endwhile", etc., it stands out. > > Since we already have the start of the block without extra punctuation, > there is no need to add a "{" there. It would be pointless to add it. >
Text objects like "a{" or "i{" don't work well without the starting "{". Also "%" may not work well. > The only place where "{" will appear is a block by itself, used to > declare a variable: > > { > let tmp = 0 > ... > } > " tmp not available here > > If you don't like using "}" you can use "endif", "endfor", etc. as before. Regards, Ken Takata -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/e77d44ae-1897-4caa-b896-9e9c24f348ec%40googlegroups.com.