Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std #3

Closed
jhkkhtd opened this issue Nov 27, 2015 · 2 comments
Closed

std #3

jhkkhtd opened this issue Nov 27, 2015 · 2 comments

Comments

@jhkkhtd
Copy link

jhkkhtd commented Nov 27, 2015

you use many symbols like "std ::" , adding one line that using namespace std will be ok!

@Dobiasd
Copy link
Owner

Dobiasd commented Nov 27, 2015

I'm not sure if you are talking about the header files or the documentation, so I will answer both.

  • header files: using namespace std here would mean every client automatically also has std imported. This can produce unneeded name colisions. So header files should never be using any namespace to give the client the freedom to decide on their own.
  • documentation: I intentionally explicitly qualified every call here, to make clear what comes from std and what comes from fplus. Some even consider using namespace std bad practice in general. But if you use FunctionalPlus you can of course utilize using namespace std as you like in your code.

@Dobiasd Dobiasd closed this as completed Nov 27, 2015
@jhkkhtd
Copy link
Author

jhkkhtd commented Nov 27, 2015

ok ,,,i think that you have teached me something, you are right !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants