Date: Sat, 29 Apr 2023 02:48:20 +0300
On Sat, 29 Apr 2023 at 02:37, Bjarne Stroustrup <bjarne_at_[hidden]> wrote:
>
> If I understand, you suggested
>
> using std::vector;
>
> that works, but now I have 200 or so using declarations to write and
> maintain.
No. That's not what I suggest. I suggest you consider whether your
students will find it palatable
to use qualified names. Then, in namespace PPP, it's the (hopefully)
rare exceptions that you're going to
"override". Users will need to use qualified names, and they can't do
"using namespace PPP;".
>
> If I understand, you suggested
>
> using std::vector;
>
> that works, but now I have 200 or so using declarations to write and
> maintain.
No. That's not what I suggest. I suggest you consider whether your
students will find it palatable
to use qualified names. Then, in namespace PPP, it's the (hopefully)
rare exceptions that you're going to
"override". Users will need to use qualified names, and they can't do
"using namespace PPP;".
Received on 2023-04-28 23:48:33