Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Now, in c++ '...' became a first class operator. In speech, how do you pronounce it?

So far I've heard:

  • dot dot dot
  • triple dot
  • ellipsis

related: Is it OK to replace ... with ellipsis in writing? e.g. "The ellipsis operator expands the pack"

EDIT (clarification): We are all aware that '...' as a punctuation mark is indeed called ellipsis. But in the context of C++ we don't pronounce the names of the punctuation mark. For example, the '&' operator, depends on the context is pronounced as 'and', 'bitwise and', 'address of', 'logical and' (when && is used), or 'reference'. It is rarely pronounced as 'ampersand'.

In speeches, I've a feeling that 'dot dot dot' is used more often. For example: (an excellent presentation about variadic templates).

On the other hand, 'dot dot dot' is awkward hard to pronouce ('d' and 't' are both pronounce with the tongue).

Can we pronounce it 'unpack'?

share|improve this question

closed as not constructive by Robert Harvey, Walter, ChrisF Oct 20 '12 at 10:37

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

Out of curiosity (not a c++ programmer)... what does the ellipsis operator do? – Marjan Venema Oct 18 '12 at 6:04
@Marjan Venema see: – AlexVogel Oct 18 '12 at 7:44
@MarjanVenema: See this – Vaibhav Agarwal Oct 18 '12 at 8:54
@VaibhavAgarwal: neither wikipedia link gives any real information. Your other link does, thanks. I quess the ellipsis is not really an operator as such then, not like the plus or minus operators are, but "just" a syntactic element to allow for an undefined number of parameters. – Marjan Venema Oct 18 '12 at 9:55
@VaibhavAgarwal It's an issue with StackExchange's automatic URL detection - if the URL ends in a ), then it doesn't work right. This is the real, correct link. – Izkata Oct 18 '12 at 17:58
up vote 1 down vote accepted

in the context of C++ we don't pronounce the names of the punctuation mark

I disagree with your premise. In my experience people refer to the meaning of the symbol when that's what they're talking about, but use the name when they need to refer to the symbol itself:

I see your problem: you're using bitwise AND instead of logical AND -- you need to use two ampersands for logical AND.

The trouble with ... in C and C++ is that it's not an ellipsis character. I'm sure it's meant to represent an ellipsis, and its meaning is similar to what an ellipsis represents in English, but I'd guess that most compilers would choke on a real ellipsis (). That surely wasn't an issue in the old days, when ASCII and EBCDIC were all there was and ellipses could only be simulated with .... These days, though, you might cause some confusion if you said:

I see your problem: that function should take variadic arguments -- add an ellipsis to the declaration.

To be really precise in such a situation, you should say "dot dot dot." If you're just talking about existing code, though, it'd be fine to say elipsis:

You can see from the ellipsis that foo(int bar, ...) takes a variable number of arguments.

Can we pronounce it 'unpack'?

Only if you don't care about being understood, or if you plan to preface your comments with "I'm going to pronounce 'dot-dot-dot' as 'unpack.'"

share|improve this answer

You're right; it's called an ellipsis. You can hear both the AmE and BrE pronunciation on the OALD page for "ellipsis".

Edit: I would say something like "the ellipsis represents variadic arguments."

share|improve this answer

It is an ellipsis, but I'd read or pronounce it as "dot dot dot".

It's a punctuation mark, and I think of it the same as & (ampersand) which I read/pronounce as 'and'.

share|improve this answer
Erm... I'm sorry to criticize, but seriously? Do you read/pronounce commas, dots, colons, semicolons, too? Eg. "Excuse me comma but I am lost dot dot dot"? Whenever an ellipsis is used a punctuation mark you don't read it, just use proper intonation for the sentence. This is the context where you pronounce ampersand as 'and'. In a situation where an ellipsis (or any other character) is the subject or somewhat related to the subject of the conversation, you refer to it as 'ellipsis', not 'dot dot dot' nor 'triple dot'. So it's an ellipsis operator. – Aoi Karasu Oct 18 '12 at 8:55
Same, if I was reading code I would say 'dot dot dot' same as & is and and | is or – Amy Oct 18 '12 at 9:25
@AoiKarasu In response to your question: yes, seriously. If I'm reading a book then I wouldn't pronounce it - nor would I pronounce !, ?. When reading code - which, given where we are, is what we are talking about - then I'd pronounce it. – Kirk Broadhurst Oct 18 '12 at 10:10
@AoiKarasu Or when you read code, do you read ! in an excited and surprised tone? Or do you say 'not'? – Kirk Broadhurst Oct 18 '12 at 10:11
@aviraldg awkward silence frequently follows the first time you encounter variadic templates. – MrFox Oct 18 '12 at 15:35

I call it the variadic operator. If that's been misinterpreted or not understood, people have been far too polite about it.

share|improve this answer

I pronounce it with a long e.


Merriam-Webster doesn't pronounce the e as a long E. It's more like an i.

\i-ˈlip-səs, e-\

Also, I don't think you could go wrong either way when writing your statement "The ellipsis operator expands the pack". Since the '...' is technically called an ellipsis, "The ellipsis operator expands the pack" is fine, but since '...' is also the representation of the operator, "The '...' operator expands the pack" would also be completely fine, in my opinion.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.