r/programmingmemes 17d ago

writingHelloWorldWithoutAllTheGear

Post image
435 Upvotes

108 comments sorted by

View all comments

22

u/Sol_Nephis 17d ago

Java and it's clear superior C# can both do one liners now.

9

u/Luk164 17d ago

Except any serious project quickly switches back to the full syntax. It is good for first timers though

2

u/Devatator_ 16d ago

Not really, it's really useful for small stuff. I typically use it for C# scripts (dotnet script.cs) since they're all single files (and it uses top-level statements by default)

3

u/Luk164 16d ago

I do not dispute that, but I also wouldn't call a simple script "serious project", though I understand my wording was a bit arbitrary

1

u/Sol_Nephis 17d ago

Generally. I still use top level statements but if it's a single file project I'll use .NET 10s single file scripting.