590
submitted 1 year ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 14 points 1 year ago

C++ is pretty alright, IMO, but the syntax is kinda clunky though, I think probably because of some historical baggage.

[-] [email protected] 6 points 1 year ago

Correct. Backwards compatibility is both its biggest asset and its bigger problem.

In syntax alone, you can check what Herb Sutter is doing with cppfront. Specifically, the wiki page on the postfix operators is quite enlightening. It shows some interesting examples of how by making everything a postfix operator you drop the need of -> and the duality of pre/post increment and decrement operators.

load more comments (2 replies)
this post was submitted on 15 May 2024
590 points (97.0% liked)

Programmer Humor

24815 readers
599 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS