Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upConsider using a phantom type in JS<T> to indicate rooted-ness #14901
Labels
Comments
|
If we did this, we'd probably want to keep typedefs like |
|
I don't think this would reduce complexity but instead increase it. Nowadays |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It has been claimed that being able to write static analysis that verifies safe rooting behaviour is more complex when multiple types are involved (ie.
JS<T>,Root<T>). A proposal for reducing this complexity is to add a phantom type toJS<T>, so we getJS<T, Unrooted>orJS<T, Rooted>. More specific examples of why this is easier to analyze would be valuable.