Repository navigation
Design For Transitive Features #1324
everythingfunctional
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In the recent Fortran-Lang Monthly Call, @perazz and I discussed a bit about how to design, using the
[features]feature, how to conveniently depend on a package that has optional features. The current design already enables this (sort of), but without it being particularly convenient.For example, say there are two packages we'd like to depend on, each with a feature defined, and we'd like to also build on these features.
So I think all that is needed is just a shorthand to make it more convenient. Something like the following.
The usage of the
import_featuresentry says that, for each feature listed, add to thefeaturestable of this package an entry with the same name that includes a.dependencies.pkg_nameentry with that feature listed, and adds entries identical to the entries for that feature from the named package.All reactions