Skip to content

Simplify parameter bindings - #2237

Merged
Kenny Kerr (kennykerr) merged 3 commits into
masterfrom
params
Dec 8, 2022
Merged

Kenny Kerr (kennykerr) merged 3 commits into
masterfrom
params

Conversation

@kennykerr

Copy link
Copy Markdown
Collaborator

Following on #2235, the input parameter bindings can be simplified further.

@kennykerr
Kenny Kerr (kennykerr) merged commit 39a2d3d into master Dec 8, 2022
@rylev

Ryan Levick (rylev) commented Dec 9, 2022 •

Copy link
Copy Markdown
Contributor

I don't believe that it is really sound to remove the lifetime param from InParam or at least you're giving up a lot of ability to tie the lifetime of the parameter to the function call. The fact this was removed with no real explanation is certainly concerning. If you want to go this route it's probably just simpler to use a raw pointer.

@kennykerr

Copy link
Copy Markdown
Collaborator Author

Happy to add the lifetime back if it serves a purpose, but it wasn't constraining anything so seemed harmless enough. The InParam very clearly is only used for input parameters and should thus always live as long the function call, but I could be missing something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants