dotnet / dotnet/vblang

Add Shared classes/nested modules

Open
#440 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
328
Forks
71
PR merge metrics
No merged PRs in 30d

Description

I like extension methods, but there’s a bit of a problem with them — quite frequently, they are only used inside a single class. I would like to be able to declare a module/shared class inside another class and then make its methods extension methods.

Unfortunately, you can’t declare a shared class at all, and modules can not be inside another class.

I think VB ought to eliminate both of those limitations.

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.