Comment

Comment by blackflame7000

Note that this is not the same as "using namespace std;" since you are only exporting the namespace std::string.

This should almost always be ok since no sane programmer should ever name their class string in the namespace of std.

As a developer, I wouldn't feel too bad about causing namespace conflicts in this manner because hopefully it will suggest to the maintainer that their class name is a poor choice.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton