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

2023-03-07 Thread José Valim
Hi Michał, Thanks for the proposal. Your initial description makes me think there may exist bugs which we would need to investigate first. 2. Users of a library with optional dependencies have to include all optional dependencies in their mix.exs This should not be required. You only need to inc

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

2023-03-07 Thread Michal Śledź
Currently, using optional dependencies is quite inconvenient and error prone: 1. A lot of modules have to use if Code.ensure_loaded statements introducing additional nesting 2. Users of a library with optional dependencies have to include all optional dependencies in their mix.exs 3. Users migh