Closed nguyenpham closed 9 months ago
Looks like a good idea but needs some more work to make compiling with MSVC and enabling conditional compiling for STATISTICS, SDEBUG, ... work. I will do that work but first of all want to ask if there is a reason not putting everything into the namespace? I will write one or two comments into the code as an example.
Q: is there a reason for not putting everything into the namespace? Purposes of namespaces: "Namespaces are used to organize code into logical groups and to prevent name collisions that can occur especially when your code base includes multiple libraries". Thus I guess we should put as many as we can.
Seems good enough to merge this now.
When embedding the chess engines into a project to work with other chess engines and or chess GUI code, a namespace can help to avoid conflicts between them because of having similar names for classes, functions and variants.