Comment

Comment by iforgotpassword

I exploited that when writing a Java app that was targeting Linux and Windows about a decade ago. Got some backlash from colleagues about not using File.pathSeparator or whatever it was called, because the purists argued that we might one day support some platform where the forward slash doesn't work. When they failed to give an example it was decided to keep it that way. Makes for much more readable path names in code.

More than ten years later and I still think it was the right choice.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton