-
Notifications
You must be signed in to change notification settings - Fork 9
Configured imports #6
Comments
Syntax is a bit odd. I think I understand the motivation, but still, normal ternary ?: would look more natural IMO. All the proposed restrictions on what can be and cannot be there will still apply, it's just "?" instead of colon, and colon instead of "||". Kind of "stripped-down ternary conditional" |
The proposal states:
This is not true (or at the very least is misleading). The analyzer does not require the values of "environment" variables to be specified. Therefore, it will not, in general, be able to determine which import will be selected, and will be forced to analyze every such library against all possible combinations of imports. This will significantly increase the amount of analysis that needs to be performed, which could have serious performance implications. (Three imports with two options each will result in analyzing the library 8 times. Any library that directly or indirectly imports the library containing the imports will (in the worst case scenario) likewise need to be analyzed 8 times.) |
I would prefer something like
where the available/supported options are listed between |
Combinatorial explosions are always unpleasant, but I think it is no But we could have a large number of combinations and a system structure Considering the former as a special case of the latter, you could say that Another matter is that it might be useful during development to be able to On Thu, Mar 5, 2015 at 6:18 AM, Brian Wilkerson [email protected]
Erik Ernst - Google Danmark ApS |
fyi, some of these comments might be good as issues over at https://github.com/lrhn/dep-configured-imports/issues ... I went ahead and filed lrhn/dep-configured-imports#4 for the analyzer issue |
Erik,
Please see my response in the issue John opened.
|
Hey, @tatumizer and @zoechi, can you file your feedback as separate issues on the repo for the proposal? This issue is just for tracking the proposal's status. Thanks! |
It's been a while since this DEP was updated! As you probably know, we're moving ahead on interface libraries (#40), so I'm closing this alternate approach. |
I have created a proposal for configurable import statements.
Note: This issue exists to track the status of the proposal. If you would like to provide feedback on the proposal itself, please do so on its repo, linked above.
The text was updated successfully, but these errors were encountered: