4 ms·
> a hardcoded path separator I use forward-slash (/) on Windows and OSX/Linux, and the JVM/libraries do the right thing all day. Please enjoy.
by spacemanmatt 4y ago
> a hardcoded path separator
I use forward-slash (/) on Windows and OSX/Linux, and the JVM/libraries do the right thing all day. Please enjoy.
- lmm 4y agoGood for you. I still can't build a project that I want to build on Windows, because its build system tries to calculate a relative path by breaking the current working path on '/' characters.
- erik_seaberg 4y agoNo language or platform is going to force me to use stdlib properly and prevent me from doing something badly the hard way.
- lmm 4y agoSomething that the people hyping Java in its early days would've done well to remember.
- spacemanmatt 4y agoBroadly speaking, the Java argument was to make it easy to do the right thing, not making it impossible to do the wrong thing. Especially when the interface to a filesystem depends on parsing structure from a string.
- spacemanmatt 4y agoYou sound like a coder. Fix it. That's not Java's fault after all these years and available solutions.