4 ms·
Yea, like, imagine if posix pipes and command-line flags could be typed.
by mmalone 6y ago
Yea, like, imagine if posix pipes and command-line flags could be typed.
- vageli 6y agoPowershell offers this I believe.
- mmalone 6y agoYep. Not perfect... type systems have come a long way since PowerShell did it. But it's a good start. Look at stuff like PowerShell secure strings for an example of the sort of neat stuff you can do.
- ChrisSD 6y agoNuShell is also attempting this. Both are cross platform. https://github.com/nushell/nushell https://github.com/nushell/nushell
- _underfl0w_ 6y agoThanks for mentioning this! It looks super interesting, but I hadn't heard of it before.
- jmmv 6y agoThat's right. I recently wrote on this topic: https://jmmv.dev/2020/10/powershell-cmdlet-params.html https://jmmv.dev/2020/10/powershell-cmdlet-params.html
- delusional 6y agoThe general problem is that typing for these sorts of systems suck. If it works it's a nice little safety feature, but when the types don't line up it's infuriating. Treating everything as a lowest common denominator makes compatibility trivial.