[conspire] Java guy asks why to use a pathSeparator constant and not /
Rick Moen
rick at linuxmafia.com
Wed Apr 20 16:38:37 PDT 2022
Quoting Dire Red (deirdre at deirdre.net):
> 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
"I understood that reference!" (Old MacOS.)
https://www.youtube.com/watch?v=YIp-0V6YKfQ
More information about the conspire
mailing list