logoalt Hacker News

magicalhippolast Tuesday at 11:13 AM2 repliesview on HN

You can do the same[1] with .Net Core for those of us who like that.

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


Replies

zahlmanlast Tuesday at 3:41 PM

That's explicit support rather than using the same // hack. The language is specifically ignoring a shebang even though it doesn't match the usual comment syntax.

show 1 reply
rr808last Tuesday at 11:34 AM

dotnet was always really good for this. There were a bunch of third party tools that have done this since the 90s like toolsack.

I think Java can run uncompiled text scripts now too