-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 for 1/29/2016 #6735
Labels
Design Notes
Notes from our design meetings
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Different modifiers for get/set accessors (#2845)
private
/protected
set accessors withpublic
get accessors.private
backing fields with a readonly accessor?public
, but only to certain assemblies.readonly
.Overloads and Union Types (#1805)
.d.ts
file.Abstract methods with callbacks (#5591)
implements
/extends
me must declare a property namedblah
."abstract
on properties.abstract
class must implement allabstract
properties.readonly
andabstract
mix?public static abstract readonly
static
is not valid withabstract
.Using string indexers with
string
-intersected types (#4372, #5599)Motivation is:
People shouldn't do that.
Really you want a "fresh type".
How do you express that?
Like this?
or maybe
InternedString
is assignable tostring
.string
would not be assignable toInternedString
.How do types compose?
How do I create an interned path?
What is the quick info for this?
tagged string
would be horrible.What's the point of
tagged string
anywhere other than a type alias?Why don't we just create a new declaration instead of piggybacking on type aliases? (e.g.
newtype
)Do we just want a construct that always generates a globally unique or "fresh" type?
Something like this:
where
????
is that globally unique or "fresh" type.Maybe
????
isnew
or something.How would a fresh type propagate with aliases?
A
andB
have identical types?Would we only allow this on primitives and object types?
But people don't want to use a tag for every class. They just want nominal.
Uh-oh, what about type literals?
Restrict this to declarations and this becomes less insane, easier to implement.
_So back to the original question!_
Would all those zany new types intersected with
string
still be allowable in an index signature?The text was updated successfully, but these errors were encountered: