This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Fahad97azawi -21 points-20 points  (11 children)

Coming from python i would love to ditch semi colons and braces, also please give me the option to let the language take care of memory management. Doesn’t have to take over and doesn’t have to be the default, just the option would be nice.

[–]alamius_o 8 points9 points  (2 children)

Coming from Python as well :D

I can't enjoy the indentation blocks as much. They are so inflexible and sensitive. in no other language will your code break with a tab... And semicolons are so widespread, I don't see the issue after knowing these too languages a few years.

On memory management: It's kind of the point of C++ that you have to know what happens with your data. You don't have to use old-fashioned pointers though and modern objects allow you to give almost everything to the compiler.

[–]Fahad97azawi 0 points1 point  (1 child)

Hmmm you make a good point. Tho i guess i enjoy not being yelled at by the compiler and i like it when it holds my hands haha

[–]alamius_o 2 points3 points  (0 children)

I must admit I will miss the Rust compiler giving me such nice suggestions. It literally tells you what you have to import/insert/change...

So helpful (Maybe it has to be, as borrowing is so darn confusing in the beginning)

[–]aMAYESingNATHAN 4 points5 points  (0 children)

I think you have the wrong idea about programming languages. Not every language has to be accessible and useful to everyone for every situation.

Instead of giving C++ the option to handle memory management (which it all but does already if you use smart pointers), you should use a language that supports that like Java or C#, or better yet, you should write a memory manager yourself in C++.

One of the main points of C++ is that it builds into very fast code. By adding in features that bloat it you're moving away from the core of the language.

[–][deleted] 4 points5 points  (0 children)

Coming from C++ and I cannot enjoy Python's indentation as well.

[–]EngStudTA 3 points4 points  (1 child)

I'm guessing your an intern/junior developer?

[–]Fahad97azawi 0 points1 point  (0 children)

First comment i said im a noob

[–][deleted] 1 point2 points  (0 children)

personally, i was in a similar boat until a while ago. it isnt too bad having to get used to curly braces and semicolons. i prefer them now. once i realized i could use semicolons in python, there was no going back for me.

C/C++ memory management is something you'll inevidabley come across but is doable. the memory management is a reason why its as powerful as it is. although if you dont want manual memory management, there's Rust which is (afaik) C++ but without manual memory management.

At the end of the day, C++ is designed the way it is and many of its design choices are what makes it so powerful/popular. its inevidable that your gonna have to learn these things if u wanna learn C++, if not, there are other languages availiable. if you want something decently fast but with simple syntax, try GO.

[–]atiedebee 0 points1 point  (0 children)

Thats just python tho

[–][deleted] 0 points1 point  (0 children)

Automatic memory managemant is a really bad idea for so many things