import a.b.mixin(somwhere).here; #23
IgorDeepakM
started this conversation in
Ideas
Replies: 1 comment
-
I think a general rule of allowing
that kind of thing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order open up for better modularization, it has been suggested that import should be able to use version strings to determine the import path.
One suggestion has been:
import a.b.mixin(somwhere).here;
https://forum.dlang.org/post/[email protected]
This has previously been solved by just
This quickly becomes a big statement as more features/platforms are supported and files in druntime/phobos often have a big chunk of this in the beginning of each file.
The strange thing is that this has been suggested several times for several years but nothing has happened. I don't know why and nobody seems to be categorically against it either. Is the complexity high in order to implement this?
The question is if we are going to implement this in openD. Since we are going remove version with a new solution, could we also enable using them in imports as well?
Also, this change also implies that the new system would use values like in C defines rather just a check that a version identifier exists. Ex. cpu.arch = x86.
Beta Was this translation helpful? Give feedback.
All reactions