![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Oh, don't get me wrong, I laughed, but it's horrible:
I once saw a C++ filesystem driver that overrode the / operator to mean "append". So you could do something like:And no, Stroustrup's not going to hell for designing a language that lets people do this. The sheer fact that people can do this means he's already there. And so are we.directory = "/tmp/subdir1"; filename = "myfile.txt"; full_path = directory/filename;
and end up with full_path being "/tmp/subdir1/myfile.txt"