-
Notifications
You must be signed in to change notification settings - Fork 9
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
Identifiers that are reserved keywords should be disallowed. #305
Comments
The reading of At the time this was implemented, it was assumed the specification meant private declarations and therefore it allows reserved WDL keywords in task/workflow inputs and outputs. Thus the places we currently accept reserved names is:
We should get clarification from the spec. For what it's worth, |
Yeah that makes sense. When you go look at the spec section on declarations, I feel that it's clear that unbound input/output declarations are included in that phrasing (e.g., the first example there in the spec specifically uses input declarations within their illustrative example). If you still feel that it needs clarification after re-reading that section, I can make an issue. EDIT: I further see this now in the declarations section right above where the example with input/output declarations is used:
Now I'm convinced there's really no room for allowing this. Let me know if you feel otherwise. |
Agreed, that language is not ambiguous. I'll fix this. The spec also uses "declarations" nomenclature around struct members, so I'm going to extend the prohibition on reserved keywords there as well. |
Yeah that sounds correct. Thanks |
The specification says (link):
However,
wdl
is completely fine with reserved keywords being used as identifiers.This should be a validation error instead.
The text was updated successfully, but these errors were encountered: