4 ms·
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/tutorials/file-based-pro
by magicalhippo 10mo ago
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/tutorials/file-based-programs#unix-shebang--support https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals...
- rr808 10mo agodotnet 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
- zahlman 10mo agoThat'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.
- magicalhippo 10mo agoTrue, so less fun, but more practical in that it's supported.