Re: [elixir-core:11372] [Proposal] Enhancements in the API for optional dependencies

2023-05-13 Thread José Valim
The behavior you describe could be fully achieved with config today. You could for example ask commanded to not define impl for Any, because you will. My understanding is that the feature requested here is not really about conditional compilation, because that’s all possible today, but rather

Re: [elixir-core:11372] [Proposal] Enhancements in the API for optional dependencies

2023-05-13 Thread Yordis Prieto
Another situation I encountered maintains a popular Stripe package related to the "features" thing. The package doesn't include Jason.Encoder for the built-in objects, which we could include, but some people may want to opt-in to their encoding for Jason. It happened to me, but the opposite