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

Would love to see examples for Rust, Go, NodeJS, C# and Java so that I can add them to my GitHub stars. I could find a few results for XDG support in Go, Rust, and NodeJS, but none of the aforementioned languages supported standards across all of macOS/Windows/Linux. Hopefully it's just my Google-fu failing me and people can correct me in the comments?

C and C++ still have strong roll-your-own culture, with the exception that C++ now has a decent filesystem module in the standard library but still no standard config file parser AFAIK, everyone usually imports nlohmann's JSON library.




For Rust, use the "directories" crate: https://crates.io/crates/directories

That will respect platform conventions on Windows, macOS, and Linux/UNIX.





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

Search: