Replies: 2 comments 6 replies
-
This is a good set of items looked at with generally positive outcomes. All very encouraging. But two items are a cause for concern for me:
I'd like to see this proposal killed dead ASAP. Viewing internal static class Program
{
private static void Main(int[] args) => new SomePublicClass().EntryPoint(args);
} All top level API tests then use
I personally don't care for the idea of a namespace accessor, but many seem to want it, so if it happens, it happens. But the idea of a private accessor for types seriously concerns me. Consistency with existing features is an often-used argument by the team to shape new features. One thing that is current highly consistent in the language is that the default scope modifier is the most encapsulated. Introducing a private modifier to types would break that consistency as when InternalsVisibleTo (IVT) is used: internal would be the default despite being less encapsulated. Therefore the solution needed here is to maintain that consistency by recognising that IVT isn't fit for purpose at times and to provide an alternative to IVT - strawman name: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/dotnet/csharplang/blob/main/meetings/2023/LDM-2023-10-09.md
is
expression evaluatingconst
expression should be considered constantBeta Was this translation helpful? Give feedback.
All reactions