Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> As others mentioned, there is an implicit class here in play.

The same strategy is also followed by C# with their top-level statements. And yes, it's syntactic sugar.

https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: