It’s my understanding that items which want to be reexported for use outside the crate would be tagged with
pub and ones for use in the crate would be
pub(super), which means that the example isn’t flawed, it just needs to take advantage of some other features which were recently added.
@petrochenkov provided feedback about how to specify this to avoid defining it as a textual replacement (I never wanted it to be actual textual replacement, for what it’s worth. The point of the pre-RFC is to improve on the idea through feedback). I’ll be updated the text to reflect those changes.
Using the word
inline is purely a bikeshed discussion. I’m not tied to the word used in any way, but unless you have a concrete suggesting, just saying that inline is confusing isn’t as helpful.
And the only goal of this RFC is to make the facade pattern more usable.