Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Question/Feature Return error instead of compiler-error on non-supported platforms #3

Open
niklasad1 opened this issue Jul 18, 2018 · 1 comment

Comments

@niklasad1
Copy link

Hey,

What's your opinions on providing dummy implementation (returning None) for platforms that are not Windows, Linux or OSX?

If you are positive to this I have a branch ready to do that and can create a PR!

@niklasad1 niklasad1 changed the title Question/Feature Return error instead of compile-time on non-supported platforms Question/Feature Return error instead of compiler-error on non-supported platforms Jul 18, 2018
@soc
Copy link
Collaborator

soc commented Jul 23, 2018

Hi @niklasad1, I don't have a fixed opinion on it, and would love to hear your position.

Which platforms do you have in mind? What would be the benefits? Wouldn't it be better to just fail compilation?

(Although I feel like with the deprecation of std::env::home_dir I'm now on the hook for supporting pretty much every operating system under the sun ...)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants