Skip to content
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

Future direction: literal type parameters #3

Open
jackfoxy opened this issue Nov 11, 2017 · 2 comments
Open

Future direction: literal type parameters #3

jackfoxy opened this issue Nov 11, 2017 · 2 comments

Comments

@jackfoxy
Copy link
Owner

This discussion robkuz/robkuz.github.io#6 (comment) suggests the LimitedValue technique may be leveraged as an F# language suggestion to implement literals as type parameters. If this were to work out, it could potentially eliminate the need for the config consuming helper function, and open the door to other methods of creating dependent types.

@robkuz
Copy link

robkuz commented Nov 14, 2017

Yeah the design of this small library could be made even much simpler if the following language suggestions: "Allow Literals in (Generic) Type Definitions" would get implemented

@jackfoxy
Copy link
Owner Author

jackfoxy commented Dec 6, 2017

Also refer to this language suggestion fsharp/fslang-suggestions#631

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants