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

The argument is that there are two separate ideas: configuration for macOS apps (i.e., .app bundles) should be placed in Application Support (a platform standard), while CLI tools should be placed in .config (not a standard, but common practice). If you're going to have a single function that returns a path, you have to pick one, and Go picked the platform standard.

On the other hand, you can be more flexible and allow the user to pick how these are determined, as the Rust crate etcetera[1] does. This gives you the best of both worlds.

[1] https://docs.rs/etcetera/latest/etcetera/app_strategy/index....



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

Search: