DEV Community

Discussion on: C# scripts using dotnet-script

Collapse
 
jessekphillips profile image
Jesse Phillips

I don't like the idea of this. It creates a new ecosystem with a special script interpreter, luckily it sounds like it comes with the tools.

In D you still have to use the standard language structure, but the language itself doesn't require the namespace, class, and function, instead it really is just the public void main you claim is the problem, but it is not.

Collapse
 
galdin profile image
Galdin Raphael

It's roslyn, the same thing that builds the usual C# code.

Never used D. But if you have every tried teaching C# to someone that's new to programming, you'll know why freedom from public static void main is a big deal. But I'm not claiming that it's a problem.

I've always had a solution with a gazillion C# console projects only to run sample code and check new libraries out. With dotnet-script I get to have single csx files instead and I like that. If you haven't tried it yet, do give it a shot!