Just an example, why D rocks, and C++ s***s...

bauss jj_1337 at live.dk
Wed Mar 16 11:56:33 UTC 2022


On Wednesday, 16 March 2022 at 11:20:45 UTC, user1234 wrote:
> On Wednesday, 16 March 2022 at 09:19:19 UTC, Carsten Schlote 
> wrote:
>> ...
>
> You're right on the fact that D std is better for that but 
> apparently there were shorter c++ alternatives (just searched 
> "stdc++ read file in vector")
>

There's also a clear difference in the philosophy of the two 
languages.

D aims a lot to be general purpose, C++ aims to be flexible and 
usable in all areas, even low-level or obscure systems.

Thus D standard library makes a lot of decisions and assumptions 
for the users and locks users within those guidelines mostly.

C++ doesn't make a lot of decisions or assumptions about the 
user, everything is mostly left up to the user to decide how they 
want to do a specific thing.

So if you want total control and freedom, then you'll end up with 
something like what C++ offers anyway.


More information about the Digitalmars-d mailing list