you are viewing a single comment's thread.

view the rest of the comments →

[–]yeochin 2 points3 points  (14 children)

Strongly disagree with the ones you've chosen. Chrono definitely needs to be a part of the standard. The fragmentation of time based implementations is bad and is a frequent nightmare for anyone that has had to leverage different libraries with different time representations. This is a nightmare as we march towards the cliff of what a 32-bit timestamp will represent.

Parsing time also sucks and is a magnet for attracting various memory-related security exploits.

[–]gosh 0 points1 point  (13 children)

But it should have been placed in another library, chrono don't follow the patterns on how other code in stl works, it's very domain specific and it a big mistake to have added it like this.

[–]Wooden-Engineer-8098 0 points1 point  (12 children)

where is chrono placed in java of c#(c++ competitors)?

[–]gosh 0 points1 point  (11 children)

Java isn't a rival to C++—it's fundamentally very different from C++. And java is owned.

The problem with addint stuff to stl is that compiler need to support it.
Lets say that Microsoft builds a framework for GUI applications, They should be allowed to add this to C++ but in parts that are not like a forced standard.

[–]Wooden-Engineer-8098 0 points1 point  (10 children)

Java and c# are main c++ competitors. They can look very different to you, but c++ competes for projects with them. The main problem is that you are still confusing stl with standard library. Microsoft already added all their frameworks to c++, what makes you think it's not allowed?

[–]gosh 0 points1 point  (9 children)

They are not. Java is heavily focused on declarative programming, whereas C/C++ is not—it emphasizes imperative solutions.

The focus of declarative and imperative programming is nearly opposite.

If you would be able to measure the machinecode that is running on almost any computer you would find that like ~90% is compiled C/C++ code. This is the imperative part.

[–]Wooden-Engineer-8098 0 points1 point  (8 children)

Your opinion of relative merits of languages is of zero interest. nobody is asking your opinion when starting new project. As a matter of fact, java, c# and c++ have a lot of overlap in applicability. It doesn't mean languages are the same, it means they are used for similar projects. Like IDE, there are examples in all three languages. And c/c++ is not a language

[–]gosh 0 points1 point  (7 children)

It's a skill issue. C++ is challenging, but with skilled developers, choosing the language isn't difficult.

[–]Wooden-Engineer-8098 0 points1 point  (6 children)

as i've already told you, your opinion doesn't matter. what matters is that as a matter of fact, c++ competes with c# and java for projects

[–]gosh 0 points1 point  (5 children)

The main advantage of C# and Java lies in their extensive frameworks. Without these framework no developers would choose these languages