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

Type-pattern based feature spec for scoped static extension methods #284

Closed
wants to merge 9 commits into from

Conversation

eernstg
Copy link
Member

@eernstg eernstg commented Mar 22, 2019

This PR adds the file 'feature-specification-using-type-patterns.md' to the directory which is concerned with static scoped extension methods.

It is an initial version of a feature specification of static scoped extension methods where only the core is covered (the extension methods themselves and their static and dynamic semantics, but no static methods or other "auxiliary" features that extensions could have).

It is based on using type patterns (#170) to specify how to extract the actual type arguments of the given receiver, and it should contain enough detail to justify the claim that we can implement this feature, with this semantics and static analysis, and trust that it will not introduce soundness issues.

@eernstg eernstg requested review from lrhn and leafpetersen March 22, 2019 15:20
@eernstg eernstg self-assigned this Mar 22, 2019
@eernstg
Copy link
Member Author

eernstg commented Jul 3, 2019

Abandoned: We chose to use an approach based on type inference rather than type patterns, and also to use the statically known receiver type rather than the dynamic type.

@eernstg eernstg closed this Jul 3, 2019
@eernstg eernstg deleted the extension_method_type_patterns_mar19 branch July 3, 2019 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants