dotnet / dotnet/csharplang

[Proposal]: Always available extension methods

Open
#8,624 0 comments 0 reactions 1 assignee Claimed by @333fred View on GitHub
Proposal champion
Dominant language
C#
Stars
12.7k
Forks
1.1k
Avg merge
11h 1m
Merged PRs (30d)
3

Description

# Always available extension methods

* Specification: https://github.com/dotnet/csharplang/discussions/8623
* Discussion: https://github.com/dotnet/csharplang/discussions/8623

## Summary
[summary]: #summary

Currently it is impossible to make sure that an extension method is always in scope, except by putting it in the global namespace. We add a step to lookup where we look for extension methods in the same namespace as the receiver type.

## Design meetings

* https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-11-11.md#always-available-extension-methods

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.