TR2 file library
I've been reading up on an introduction to the TR2 file system library in Visual Studio 2012.
I can't say I was very impressed by choice of using the '/' operator to concatonate file paths.
It seemed to violate all of the good practices to do with operator overloads that I've read (and tended to agree with) over the years.
Call me weird, but '/' doesn't immediately say 'concatonate' in my mind.
Example from the blog:
Surely '+' would have made much better sense, being that the concept of using it as a concatonation operator is not exaclty alien to any C++ coder. (Think std::string)
auto startup_path = initial_path();
auto log_path = startup_path / path("logs/current");
auto output_path = startup_path;
output_path /= "output";
What do you think?
"It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
Richard P. Feynman