How is :: and -> pronounced?

B

benben

Is there a standard (or de facto standard) way to pronouce the operator ::
and ->? For example, how would you pronounce the following expressions?

a->f(b);
std::size_t sz;

Ben
 
S

Steven T. Hatton

benben said:
Is there a standard (or de facto standard) way to pronouce the operator ::
and ->? For example, how would you pronounce the following expressions?

a->f(b);
Arrow.

std::size_t sz;
Claw.

Ben
 
V

Victor Bazarov

benben said:
Is there a standard (or de facto standard) way to pronouce the
operator :: and ->? For example, how would you pronounce the
following expressions?

a->f(b);

"arrow", "pointer".
std::size_t sz;


Not pronounced, simply "Ess-Tee-Dee-size-Tee". In other places
I've used (and heard others use) "colon-colon".

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top