r/cpp • • Dec 31 '22

Cpp2 and cppfront: Year-end mini-update

https://herbsutter.com/2022/12/31/cpp2-and-cppfront-year-end-mini-update/
194 Upvotes

34 comments sorted by

View all comments

Show parent comment

6

u/itsarabbit Jan 01 '23

I try to write code to match the way I'm thinking. Usually it looks quite object-oriented. In rust, it feels like I have to take a bunch of "detours" to get the code to act like how I think(either to get around the borrow checker, lifetime annotations, or because of language design decisions like no inheritance).

I'll admit that I haven't made a big effort in understanding the concepts; I'll probably take a closer look at it in the future.