Hacker News new | past | comments | ask | show | jobs | submit login

Why is / inherently better as a path delimiter than \ ? DOS was built to be compatible with VMS and other DEC OS's, which used / as a switch character.



If you could arbitrarily pick any character, both are as good as each other. However '\' is currently an escaping character in nearly every program that needs such a function, so as things currently are, '/' is better. This begs the question of when '\' as an escape character became mainstream though.


Because nearly every programming language uses \ as an escape, which means in string literals that you have to double escape the \ which is error prone and ugly.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: