If C++ cmpler became smarter would't be opinionated as rust borrowchecker?

https://news.ycombinator.com/item?id=43101320
by itissid • 1 year ago
4 2 1 year ago

I'm not well versed with either language as I was reading the article published https://cacm.acm.org/blogcacm/21st-century-c/

I suddenly thought of the forward looking trajectory of the idea of making c++ compiler smart(er) as to ease the burden of memory copying (section 3) with zero overhead. If one traces this arc it means that one day c++ compilers would be equivalent to the borrow checker? That is to say they would throw compile time errors for using some construct in c++ that copied instead of moved?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com