-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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, 5/6/2016 #8503
Comments
👍 Thanks for writing these up - I'm sure they're an organizational help for the TS team, but they also are great for external TS users (like me) interested in where TS is going and the learning about the challenges in creating a language like TS. |
Maybe just declare a method as an initializer? class A {
a: number;
init onMount() {
a = 1;
}
} |
FWIW flowlang has |
--strictNullChecks
#8476 - Uninitialized non-null properties in classesinit
methodabstract
classes<any>undefined
but that's impactful and weirdx!: number;
x: number!;
(what wouldx: number!|string;
mean?)x: number = *;
!
modifier on a declaration that says "Let me treat this as non-null when convenient"interface X { foo?(): void; }
8370 -
this
types for accessors7271, Interfaces and classes considered equal #8168, Suggestion: the 'instanceof' type modifier for class and function types #8316 -
instanceof
instanceof
(small + easy), or add nominal types back in some form (huge, been discussed before at length)instanceof
x instanceof T
instead ofx is T
in the predicate formis T
is likeinstanceof T
whenT
is a class typeThe text was updated successfully, but these errors were encountered: