-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Produce #17640's anonymous type declarations from function types #17641
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
Comments
The title of this issue is a mess, any suggestions? |
Might say 'type functions from function types' following Idris's nomenclature of 'type function' referring to types with generics (takes types, returns a type), but yeah haven't heard that here as much. |
That seems pretty confusing to me, given that I'm a filthy casual who's never even read a line of Idris. I've tried something else, not sure if I've actually improved things though. |
Yeah, mine sounded pretty rather than clear. Yours sounds clearer.
It's barely used afaik, but made some headlines in the Haskell community for doing some things better. |
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
This issue is branching out of discussion in #17636, and depends on #17636 and #17640.
Working together, these features aim to eliminate the need for #6606, by providing type switching and filtering within the type system, and making it possible to access the return types of functions.
Type declaration overloads provide all the power of function overloads.
can be described by type declaration overloads as
This proposal is for allowing the conversion of a function type into the equivalent anonymous overloaded type declaration.
where
typeof Fizz["foo"]
was expanded toThe text was updated successfully, but these errors were encountered: