Remix.run Logo
▲ shevy-java 2 days ago

You have a point - I find Rust syntax horrible.

C is in some ways minimal, but the pointer-syntax and some more I absolutely dislike. I also found C++ easier to use in some areas, such as:

   cout << "Hey there" << endl;
The equivalent C is simply uglier. Of course C++ failed in other areas big time, but for such simple things like above, I think C++ is better than C. Naturally that cout example is very simplistic, but one can find other examples where C is really quite ugly.
▲atiedebee a day ago | parent | next [-]

puts("Hey there"); is worse than C++ iostream? In my opinion, even printf style strings are better than iostream shenanigans. The main downside of printf is addressed in more modern languages like rust which allow the printed parameters to be embedded in the string so you don't have to keep track of the ordering.

▲dnautics 2 days ago | parent | prev [-]

   cout << "Hey there" << endl;
Yeah but christ as a beginner c++ dev I remember thinking "wtf is << actually doing here?" And tbqf, I'm still not quite sure, 20 years later
▲pasteleft 2 days ago | parent [-]

Of course it is doing a left shift :)