Skip to content

Why is the data not optional in ExecutionResult? #134

Closed Answered by maticzav
huihuisang asked this question in Q&A
Discussion options

You must be logged in to vote

@huihuisang thank you for bringing this up and being so patient with me. You are correct that this was indeed an unhandled edge case.

To give you a bit of context, as I described in the PR, I think it's still better to specify data as non-nullable because otherwise, we need to modify a lot of code to account for the possibility of data being nil and that collides with the TypeLocks which resolve nil values themself, but I took it for granted that missing fields would work as well.

Thanks!

#144

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@huihuisang
Comment options

@maticzav
Comment options

@huihuisang
Comment options

@maticzav
Comment options

Answer selected by maticzav
@huihuisang
Comment options

@maticzav
Comment options

@huihuisang
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants