6 ms·
From the top-level statement section: > Top-level statements enable a script-like experience for experimentation similar to what Jupyter notebooks provide. Top
by dvaun 6y ago
From the top-level statement section:
> Top-level statements enable a script-like experience for experimentation similar to what Jupyter notebooks provide. Top-level statements are great for small console programs and utilities.
This is great for small, one-off scripts that can handle simple tasks for sysadmin work. I use Powershell for handling configuration changes on the CLI, but I don't write and save many scripts with it. Perhaps I need to learn more about the PS environment to fix that. Either way, I have a hunch that there are some tasks—which would be cumbersome in PS—that this new feature would make accessible.
- pjmlp 6y agoYou can already use C# for scripting with previous versions. https://docs.microsoft.com/en-us/archive/msdn-magazine/2016/january/essential-net-csharp-scripting https://docs.microsoft.com/en-us/archive/msdn-magazine/2016/... https://itnext.io/hitchhikers-guide-to-the-c-scripting-13e45f753af9 https://itnext.io/hitchhikers-guide-to-the-c-scripting-13e45... C# 9 just makes it easier.