-
Notifications
You must be signed in to change notification settings - Fork 8
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
Implement sequence syntax #170
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The end result looks good to me 👍 However the code in the meta package is getting quite cryptic for me, I wonder if some high-level comments would help future maintenance.
} else { | ||
ForeignFunctionCall(decl, inTs, args)(outT) | ||
} | ||
assert(inTs.length == n) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this should be part of our type-checking logic on DPIA primitive construction?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will check if this is checked as part of the well-formedness check (or if it can be done there).
I have addressed all your points, can you @Bastacyclop have a final look? |
src/main/scala/shine/DPIA/primitives/functional/ForeignFunctionCall.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This implements a syntax for sequences of arguments for primitives and resolves #168