▲ | favorited 2 days ago | ||||||||||||||||||||||||||||||||||
You might be interested in this talk[0] by a WebKit engineer on how they're implementing similar approaches using libTooling and their own smart pointer types. For example, their tooling prevents code like this:
from compiling, forcing you to explicitly create an owning local reference, like so:
unless it's a trivial inlined function, like a simple getter. | |||||||||||||||||||||||||||||||||||
▲ | pizlonator 2 days ago | parent [-] | ||||||||||||||||||||||||||||||||||
I was going to link to this. My interpretation of Geoff's presentation is that some version of profiles might work, at least in the sense of making it possible to write C++ code that is substantially safer than what we have today. | |||||||||||||||||||||||||||||||||||
|