-
Notifications
You must be signed in to change notification settings - Fork 5
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
Reversible (Un)Serialization #70
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.
Seems straightforward to me.
You omitted the most important part of the sentence from your source: "or vice versa"! 🤣
I think you meant
I think you meant 😁 |
Of the code that I've touched, I have assigned the outer scope variable to a locally scoped variable for iterating with |
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.
Of the code that I've touched, I have assigned the outer scope variable to a locally scoped variable for iterating with
t.Run()
.
Thanks!
There is at least one other instance that needs to be changed in a refactor separate from this PR.
If you're not going to address that immediately (e.g., in another PR), then you should open an issue for it.
logically reversibile operation is an operation that the output of the operation can be computed from the input (i.e. bijective)
You omitted the most important part of the sentence from your source: "or vice versa"! 🤣
The PR description is still missing the key "or vice versa" phrase.
Other than those nits, this looks good to go.
The definition for an invertible function says both |
Yes, but...the description for this PR claims that a "logically reversibile operation is an operation that the output of the operation can be computed from the input" which is not correct (i.e., that description is not sufficient). It's pretty much axiomatic that an output can be computed from the input. What makes the function reversible is that the input can be computed from the output, hence the "vice versa" phrase which hyperlinked source includes but the PR description omits. |
Changes introduced with this PR
logically reversibile operation is an operation that the output of the operation can be computed from the input (i.e. bijective)
inverse function := a function that undoes the operation of another function; this inverse only exists if the original function is bijective
Add or modify tests to demonstrate that
serialize()
andunserialize()
are inverse functions to each other, in that they reverse each others mappings.s
is invertible if, for eachy
inY
and
u
is invertifible if, for eachx
inX
means
By contributing to this repository, I agree to the contribution guidelines.