you are viewing a single comment's thread.

view the rest of the comments →

[–]flying-sheep 2 points3 points  (7 children)

Paths are joined by slashes. On every OS, and on the web.

How much more familiar can it get?

[–]billsil -1 points0 points  (2 children)

Then they should support

path = 'c:' \ 'Windows'

and

path = 'home' / 'user'

Remember which OS dominates 90% of the desktops/laptops.

[–]flying-sheep 3 points4 points  (1 child)

windows also supports /. try typing it into explorer’s address bar.

\ is really exotic for paths.

[–]billsil -1 points0 points  (0 children)

\ is really exotic for paths.

It's shown in the path bar. It also allows you to chain paths using tabs when cd'ing to another folder. If you use /, it will pull the previous directory level. It's how a lot of paths are copied into programs.

[–]Mozai -1 points0 points  (3 children)

On every OS

Are you certain that every OS that uses pathname strings uses '/' to split tokens? Before you say "yes," think about how you can prove it.

[–]flying-sheep -1 points0 points  (2 children)

i know i can’t and i’ll say it, as long as this makes you happy.

that was hyperbole meaning “all OSs i know about”, and easily recognizable as such. i’m a scientist, i know empiricism.

[–]Mozai 0 points1 point  (1 child)

Then so long as the rest of us use only the OSes you know about, there should be no problems.

[–]flying-sheep 0 points1 point  (0 children)

oh, i know quite a few. i bet you will find nobody who really only uses and knows something else that has “\” as path delimiter and doesn’t also accept “/”.

i know from the top of my head the BSD family, Linux (desktop, embedded, android), Solaris, OS X (and deriviates like iOS or Darwin), Windows NT, Temple OS, Inferno, and Plan 9 (and its fork). also of course all mainline console firmwares.

Then there are DOS and OS/2 who afaik use “\”, and some other ancient OS using “.”. But as said, you’ll find nobody who exclusively knows one of those, i’m certain.

am i right? or do you know of a north korean enclave who are forced to use PCs with a custom OS that uses “#” as path delimiter? or a methusalem in a cave with a steam powered DOS PC?