Documentation: braces or parentheses

15 views
Skip to first unread message

A. Wik

unread,
Dec 6, 2020, 9:55:37 AM12/6/20
to vim...@googlegroups.com
Hi all,

The documentation, specifically pattern.txt section /atom, refers to
"braces" but apparently means "parentheses". Braces in my definition
are particularly { and }.

According to Wikipedia, the term "bracket" is used for brackets of any kind.
https://en.wikipedia.org/wiki/Bracket

Regards,
Albert.

Jesus Arocho

unread,
Dec 6, 2020, 11:29:43 AM12/6/20
to vim...@googlegroups.com
Not quite:
() = parenthesis or round brackets
{} = braces or curly brackets
[ ] = brackets or square brackets


--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CALPW7mTxevVs16H-ZAAQ2difUMjfyT3Kyb2%2BUJSGq1JSwt_RWQ%40mail.gmail.com.

A. Wik

unread,
Dec 6, 2020, 11:49:14 AM12/6/20
to vim...@googlegroups.com
On Sun, 6 Dec 2020 at 16:29, Jesus Arocho <un.yu...@gmail.com> wrote:
>
> Not quite:
> () = parenthesis or round brackets
> {} = braces or curly brackets
> [ ] = brackets or square brackets
>

Yes? Not quite what? What you write above just seems to illustrate
what I was saying.

I meant that "brackets", not "braces", is the term to use if you wish
to refer to any kind of brackets. The documentation uses the word
"braces" to refer specifically to parentheses ("round brackets").

-aw

Jesus Arocho

unread,
Dec 6, 2020, 12:18:17 PM12/6/20
to vim...@googlegroups.com
Ahh, I see.  Right, bracket is generic and if the documentation used braces for parenthesis, it is incorrect.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.

rwmit...@gmail.com

unread,
Dec 6, 2020, 12:49:36 PM12/6/20
to vim_use
Early on ( ~88 ) someone told me { } were called buzzard wings.  Might not have caught on, but is a lot more fun.

Bram Moolenaar

unread,
Dec 6, 2020, 12:51:32 PM12/6/20
to vim...@googlegroups.com, A. Wik
Yes, it should be parentheses. But I only find one occurrence, are
there more?

--
Veni, Vidi, VW -- I came, I saw, I drove around in a little car.

/// Bram Moolenaar -- Br...@Moolenaar.net -- 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 ///

A. Wik

unread,
Dec 6, 2020, 1:17:38 PM12/6/20
to Bram Moolenaar, vim...@googlegroups.com
On Sun, 6 Dec 2020 at 17:51, Bram Moolenaar <Br...@moolenaar.net> wrote:
>
> Yes, it should be parentheses. But I only find one occurrence, are
> there more?

There are 2 occurrences of "brace" in my version of pattern.txt. The
second is in the /\@= section.

-aw

Ruben Safir

unread,
Dec 6, 2020, 6:37:47 PM12/6/20
to vim...@googlegroups.com
On 12/6/20 12:49 PM, rwmit...@gmail.com wrote:
> Might not
> have caught on, but is a lot more fun.

brac is less char

--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
Reply all
Reply to author
Forward
0 new messages