-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Structs should be separed by namespaces #280
Comments
I agree that this or something similar is certainly needed. Originally I avoided this to prevent type declarations like the following, which seemed burdensome at the time.
Instead I opted for an
I am not sure what the right answer is here, as I have not run into this case myself yet. |
I think that both are reasonable, and I'd like to have both if possible. |
Tangential question I just wanted to write down here. The spec does not clearly forbid name collisions between values and calls in a workflow (i.e. I can have From a spec perspective, do we forbid all value/call name collisions or only those involving structs/pairs or only those where actual ambiguity could exist or only those where ambiguity does exist? |
Just to keep things simple for the user, I would say forbidding any and all name collisions would be preferable. |
When importing a wdl (B) that has a Struct definition into another wdl (A), one can use and reference that struct in A without needing to note the namespace of the Struct. This has two negative implications:
I would propose forcing the user to decorate the structure with the name of the imported library before using an imported structure.
problem that needs to be solved: What to do when the same structure is effectively imported twice, once directly, and once via a third wdl? will the parser know that it's the same? should the user be forced to import the struct directly and only use that?
The text was updated successfully, but these errors were encountered: