Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> one of the few programming languages that correctly doesn’t treat file paths as strings

I hear: one of those few programming languages that, despite its vaunted type-safety, makes it possible to accidentally create a file with a completely bogus name that I won't be able to view or open correctly with half the programs on my computer.

Languages which allow arbitrary byte sequences in paths are the cause of, and solution to, all of Unix's pathname problems.



So what you're saying is the language should not be able to work with pre-existing files whose names are not valid UTF-8?


No, it’s impossible to do that accidentally. Due to its type safety. You have to be pretty explicit about passing a non-string in (all rust strings are valid utf8).




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

Search: