Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Not only is UNIX dead, it's starting to smell really bad. -- Rob Pike


devel / comp.lang.ada / What is the name of the | symbol?

SubjectAuthor
* What is the name of the | symbol?Matt Jaffe
`* Re: What is the name of the | symbol?Niklas Holsti
 `- Re: What is the name of the | symbol?Paul Rubin

1
What is the name of the | symbol?

<8c89d912-0672-4e86-b4f3-7893ef0e7183n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6739&group=comp.lang.ada#6739

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ac8:7f82:0:b0:2e1:caba:ad6e with SMTP id z2-20020ac87f82000000b002e1cabaad6emr10737909qtj.190.1648235765234;
Fri, 25 Mar 2022 12:16:05 -0700 (PDT)
X-Received: by 2002:a81:3247:0:b0:2e5:cd9e:852b with SMTP id
y68-20020a813247000000b002e5cd9e852bmr12637264ywy.242.1648235764911; Fri, 25
Mar 2022 12:16:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Fri, 25 Mar 2022 12:16:04 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=67.60.105.60; posting-account=gQF3jAoAAABoaiz3fV1hQ7bEbL48C-fl
NNTP-Posting-Host: 67.60.105.60
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8c89d912-0672-4e86-b4f3-7893ef0e7183n@googlegroups.com>
Subject: What is the name of the | symbol?
From: matt.ja...@gmail.com (Matt Jaffe)
Injection-Date: Fri, 25 Mar 2022 19:16:05 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 6
 by: Matt Jaffe - Fri, 25 Mar 2022 19:16 UTC

In using it in a named association array aggregate, its semantics are "and" --- e.g., some_1D_array := (1 | 3 | 7 => 5, others => 10) sets elements 1 and 3 and 7 to the value 5. In a case statement, its semantics are "or" --- e.g. when 1 | 3 | 7 => ... any of the values 1or 3, or 7 for the case expression will select the ... code for execution. Is there a single name for that symbol (the | ) that seems to have different semantics depending on context?

Re: What is the name of the | symbol?

<ja6lftFlq3aU1@mid.individual.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6743&group=comp.lang.ada#6743

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: niklas.h...@tidorum.invalid (Niklas Holsti)
Newsgroups: comp.lang.ada
Subject: Re: What is the name of the | symbol?
Date: Fri, 25 Mar 2022 22:03:08 +0200
Organization: Tidorum Ltd
Lines: 29
Message-ID: <ja6lftFlq3aU1@mid.individual.net>
References: <8c89d912-0672-4e86-b4f3-7893ef0e7183n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net wd1p5h3B1yet8kPieVJuHwP6eI8EOR/rWthWDUja/JintXQsb6
Cancel-Lock: sha1:BGR/74YvX2coo3k+JiteT/nTkA4=
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0)
Gecko/20100101 Thunderbird/91.6.2
Content-Language: en-US
In-Reply-To: <8c89d912-0672-4e86-b4f3-7893ef0e7183n@googlegroups.com>
 by: Niklas Holsti - Fri, 25 Mar 2022 20:03 UTC

On 2022-03-25 21:16, Matt Jaffe wrote:
> In using it in a named association array aggregate, its semantics are
> "and" --- e.g., some_1D_array := (1 | 3 | 7 => 5, others => 10) sets
> elements 1 and 3 and 7 to the value 5. In a case statement, its
> semantics are "or" --- e.g. when 1 | 3 | 7 => ... any of the values
> 1or 3, or 7 for the case expression will select the ... code for
> execution.

That is a quirk of natural language, where "and" and "or" are used in
non-mathematical ways. You could as well describe the aggregate as
saying "if the index is 1 or 3 or 7, the element is 5", and you could
describe the case statement as saying "this when-branch is executed when
the case selector is 1 and 3 and 7".

As '|' is used in some logical formalisms for disjunction ("or"), and in
syntactical notation (BNF) to separate alternatives, I tend to read it
as "or".

> Is there a single name for that symbol (the | ) that seems
> to have different semantics depending on context?

For the name, see https://en.wikipedia.org/wiki/Vertical_bar, where
indeed "vertical bar" seems favoured. However, I'm pretty sure that I
have seen "solidus" used, too, but Wikipedia says that is a synonym for
"slash" (/). Wiktionary does not recognize "solidus" as a term for any
punctuation mark.

Re: What is the name of the | symbol?

<878rsxgx33.fsf@nightsong.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6753&group=comp.lang.ada#6753

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: no.em...@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.ada
Subject: Re: What is the name of the | symbol?
Date: Fri, 25 Mar 2022 21:24:32 -0700
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <878rsxgx33.fsf@nightsong.com>
References: <8c89d912-0672-4e86-b4f3-7893ef0e7183n@googlegroups.com>
<ja6lftFlq3aU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="1ea7b7f8c52c95fff041b476089e2220";
logging-data="16767"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/eXIj2fszdadn+TW1vmL94"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:VM2921i1DyNwPa2u6c5GAnN0AOw=
sha1:Sv5O+JiStwf6U6DhuKOEIRQz9FM=
 by: Paul Rubin - Sat, 26 Mar 2022 04:24 UTC

Niklas Holsti <niklas.holsti@tidorum.invalid> writes:
> For the name, see https://en.wikipedia.org/wiki/Vertical_bar

The Unicode name is U+007C VERTICAL LINE, alias name vertical bar.

/ is U+002F SOLIDUS, alias names slash and virgule. I haven't heard of
the name "solidus" used for symbols other than /.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor