Skip to main content
Post Closed as "Needs more focus" by sourcenouveau, CommunityBot, gnat, Bart van Ingen Schenau, jwenting
deleted 7 characters in body
Source Link
Robert Harvey
  • 200.7k
  • 55
  • 470
  • 683

Are there any other languages that use the new C++11 uniform initialization syntax thoroughly throughout the entire language, or is this entirely a C++ idiom at this point?

I tried googling and thinking of any off the top of my head and couldn't really find any.

Edit (forFor those not familiar with C++11):

Basically, your typical initialization in C++ used to be an assignment/copy initializer similar to other languages:

int x = 5; 

Now, the new syntax that is recommended for use is:

int x{5}; 

This is called the new uniform initialization syntax.

Are there any other languages that use the new C++11 uniform initialization syntax thoroughly throughout the entire language, or is this entirely a C++ idiom at this point?

I tried googling and thinking of any off the top of my head and couldn't really find any.

Edit (for those not familiar with C++11):

Basically, your typical initialization in C++ used to be an assignment/copy initializer similar to other languages:

int x = 5; 

Now, the new syntax that is recommended for use is:

int x{5}; 

This is called the new uniform initialization syntax.

Are there any other languages that use the new C++11 uniform initialization syntax thoroughly throughout the entire language, or is this entirely a C++ idiom at this point?

I tried googling and thinking of any off the top of my head and couldn't really find any.

For those not familiar with C++11:

Basically, your typical initialization in C++ used to be an assignment/copy initializer similar to other languages:

int x = 5; 

Now, the new syntax that is recommended for use is:

int x{5}; 

This is called the new uniform initialization syntax.

added more details for those unfamiliar with C++11
Source Link

Are there any other languages that use the new C++11 uniform initialization syntax thoroughly throughout the entire language, or is this entirely a C++ idiom at this point?

I tried googling and thinking of any off the top of my head and couldn't really find any.

Edit (for those not familiar with C++11):

Basically, your typical initialization in C++ used to be an assignment/copy initializer similar to other languages:

int x = 5; 

Now, the new syntax that is recommended for use is:

int x{5}; 

This is called the new uniform initialization syntax.

Are there any other languages that use the new C++11 uniform initialization syntax thoroughly throughout the entire language, or is this entirely a C++ idiom at this point?

I tried googling and thinking of any off the top of my head and couldn't really find any.

Are there any other languages that use the new C++11 uniform initialization syntax thoroughly throughout the entire language, or is this entirely a C++ idiom at this point?

I tried googling and thinking of any off the top of my head and couldn't really find any.

Edit (for those not familiar with C++11):

Basically, your typical initialization in C++ used to be an assignment/copy initializer similar to other languages:

int x = 5; 

Now, the new syntax that is recommended for use is:

int x{5}; 

This is called the new uniform initialization syntax.

Link to stroustrup.com, C+11 FAQ.
Source Link
user40980
user40980

Are there any other languages that use the new C++11 uniform initialization syntaxC++11 uniform initialization syntax thoroughly throughout the entire language, or is this entirely a C++ idiom at this point?

I tried googling and thinking of any off the top of my head and couldn't really find any.

Are there any other languages that use the new C++11 uniform initialization syntax thoroughly throughout the entire language, or is this entirely a C++ idiom at this point?

I tried googling and thinking of any off the top of my head and couldn't really find any.

Are there any other languages that use the new C++11 uniform initialization syntax thoroughly throughout the entire language, or is this entirely a C++ idiom at this point?

I tried googling and thinking of any off the top of my head and couldn't really find any.

removed term "poll" - it's a reason to close the question
Source Link
Dan Pichelman
  • 13.9k
  • 8
  • 46
  • 74
Loading
Source Link
Loading