-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
Design Meeting Notes, 10/10/2016 #11505
Labels
Design Notes
Notes from our design meetings
Comments
Subset types proposal looks great! I think there are some typos in orginal post function update(updates: subset S) {
// ...
} should be function update(updates: subset State) {
// ...
} and function setState<T>(state: T, updates: subset State) {
// ...
} should be function setState<T>(state: T, updates: subset T) {
// ...
} |
Thanks for catching @chicoxyzzy! Hard to take notes while discussing. 😄 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Control Flow Analysis for Array Construction (#11432)
AH: Improving furthur on un-annotated initializers, we have expanded our logic to "evolve" the type of an empty array.
This evolution "stacks".
Junctions have interesting cases with constructions of exclusive types.
Subset Types (#11233)
Name is up for debate & bikeshedding.
Problem is that users excess property checking can be lost through intermediate assignments
Generics
What happens when you have a partial type parameter in a function?
Resolution: Only things that are assignable to
subset T
areT
subset T
any
.What about this?
Resolution: Not allowed.
Why?
We can be more conservative later, but if you think about it from the perspective of no constraint (where it's implicitly
{}
), then really any type should be assignable tosubset T
in those scenarios.Non-properties
Index Signatures
Name of
Resolution:
subset
Extensibility (#10159)
More of a meta discussion.
Uses
All are in some way related to language service.
Pros
Great tooling, allows different libraries & frameworks to give an augmented experience.
Cons
Status
Unresolved.
The text was updated successfully, but these errors were encountered: