Replies: 2 comments
-
Doesn't C# already allow that, in the scripting mode? For example, the following code currently runs fine: using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.Scripting;
class Program
{
static async Task Main()
{
string code = @"
using System.IO;
using (Stream.Null);";
await CSharpScript.EvaluateAsync(code);
}
} |
Beta Was this translation helpful? Give feedback.
-
Regarding flow-control safety:
This needs to also handle constructs like this: {
goto label1;
label2:
return;
using var x = new FileStream(...);
label1:
goto label2;
} The variable |
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/master/meetings/2018/LDM-2018-07-09.md
Agenda
using var
featureusing expr;
grammar formPattern-based Dispose in the
using
statementRelax Multiline interpolated string syntax (
$@
)Beta Was this translation helpful? Give feedback.
All reactions