How about adding a new operator “/” to File and String? It would allow for lovely simple cross-platform path construction:
File myFile = File::getSpecialLocation (File::userApplicationDataDirectory)
/ "MyFolder" / "Preferences" / "BaseConfiguration.prefs";
It should work fine with String, File and possibly also other non-math objects. Apart the improved readability, it is also very comfortable for programatically constructing and traversing directory structures
What do you think?