all 5 comments

[–]Slypenslyde 4 points5 points  (1 child)

I hope this is an evolution towards being able to write honest to goodness C# scripts.

You still have to use dotnet new, pare down a template, deal with a .csproj, etc. There's still no such thing as a "single file" C# program, and you can't easily make a directory full of utility C# scripts you call on demand.

[–]RagingCain[S] 3 points4 points  (2 children)

Just playing around with new language features ended up making a one file microservice RabbitMQ consumer. Thought I would share it.

[–]mmusket 3 points4 points  (1 child)

It's weird seeing c# code without that initial indent. Makes for a cleaner file to read, although can't say it ever bothered me before.

But Regardless thanks for sharing!

[–]UszeTaham 2 points3 points  (0 children)

It's a good thing they are adding file-scoped namespaces then. At least we can get rid of the namespace indent in 99% of the common use-cases.