Hacker News new | ask | show | jobs
by MakersF 1858 days ago
In practical terms, none. They are the same, and the same as using the curly braces.

From the POV of the standard, those are different kinds of initializations. C++ has like 12 different ways of initializing variables, and the differences are quite confusing, but in practical terms in my experience I never had to care too much beside making sure native types are initialized to some specified value.

You can probably find some talks on YouTube talking about the initializations of c++, and 1h30m is probably not enought to cover all the details :')

1 comments

Yeah, that sounds like C++, I suppose. Thanks very much.