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.
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.
--
Why isn't there mouse-flavored cat food?
/// 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202001031002.003A24RG004407%40masaka.moolenaar.net.