[conspire] Java guy asks why to use a pathSeparator constant and not /
Deirdre Saoirse Moen
deirdre at deirdre.net
Wed Apr 20 16:22:11 PDT 2022
Fun StackOverflow answer:
"You use File.separator because someday your program might run on a platform developed in a far-off land, a land of strange things and stranger people, where horses cry and cows operate all the elevators. In this land, people have traditionally used the ":" character as a file separator, and so dutifully the JVM obeys their wishes."
https://stackoverflow.com/questions/2417485/difference-between-file-separator-and-slash-in-paths
--
Deirdre Saoirse Moen
deirdre at deirdre.net
More information about the conspire
mailing list