Skip to content

Commit

Permalink
Update text/0061-functions.md
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Wells <[email protected]>
  • Loading branch information
aaronjeline and andrewmwells-amazon authored Mar 28, 2024
1 parent 6f5be58 commit a9874ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/0061-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ Doing so may also make it easier to provide clear validation error messages.
But introducing type annotations for macros introduces several questions.

1. Do we allow `type` declarations allowed in policy sets, or just in schemas?
2. Are type annotations on functions enforced dynamically à la "contracts," or are they just ignored at runtime?
2. Are type annotations on macros enforced dynamically à la "contracts," or are they just ignored at runtime?
1. If they are dynamically enforced, that implies access to the schema to unfold type definitions. It also may introduce redundant type checking.
3. Are type annotations required or optional?
4. Will we have types to support generics, i.e., polymorphism?
Expand Down

0 comments on commit a9874ca

Please sign in to comment.