You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proposal is about to have an ability to declare needed namespaces via short one-line format:
How we declare usings now:
using System;
using System.Runtime;
using System.Runtime.InteropServices;
How it can be:
using System, System.Runtime, System.Runtime.InteropServices;
And to reduce self-repeating by using some special character like '*':
using System, *.Runtime, *.InteropServices;
to let the compiler search Runtime and InteropServices in one of the previously defined namespaces (if there are more than one - to include all of them or to show a compilation error).
As an alternative, a new keyword, for example "all":
using all System.Runtime.InteropServices;
it indicates that compiler should include all intermediate namespaces as well (System and System.Runtime)
The text was updated successfully, but these errors were encountered:
@gafter For short scripts/one-liners/REPL where the "using" section can be bigger than the actual code. Also sometimes 'using' section is so big so it occupies the whole screen and 80% of text is a copy-paste.
The proposal is about to have an ability to declare needed namespaces via short one-line format:
How we declare usings now:
How it can be:
And to reduce self-repeating by using some special character like '*':
to let the compiler search Runtime and InteropServices in one of the previously defined namespaces (if there are more than one - to include all of them or to show a compilation error).
As an alternative, a new keyword, for example "all":
it indicates that compiler should include all intermediate namespaces as well (System and System.Runtime)
The text was updated successfully, but these errors were encountered: