New ask Hacker News story: If C++ cmpler became smarter would't be opinionated as rust borrowchecker?

If C++ cmpler became smarter would't be opinionated as rust borrowchecker?
2 by itissid | 0 comments on Hacker News.
I'm not well versed with either language as I was reading the article published https://ift.tt/AtYT8oD 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?

Comments

Popular posts from this blog

New ask Hacker News story: Tell HN: Equifax free credit report dark patterns

New ask Hacker News story: Ask HN: Why can't the US government run their own social media?