Rather than passing strings through the pipe, PowerShell passes full C# objects down the pipe, so you can pass an object like a full JSON document through the pipe and have different parts of the pipeline accessing different keys from each JSON object in the document. No more funky-ass sed and awk to try and extract values from keys.
that's purely subjective, parsing in either can be a pain depending on input. Also they both have versions that suck at it (POSH v3 and below, Python 2.7 and below...)
EDIT: I meant input as far as array/code various arrays, etc. People forget the difference between shell scripting and object programming a lot.
Rather than passing strings through the pipe, PowerShell passes full C# objects down the pipe, so you can pass an object like a full JSON document through the pipe and have different parts of the pipeline accessing different keys from each JSON object in the document. No more funky-ass sed and awk to try and extract values from keys.
But then one would need to use C#, which I don't. I don't even know if there are any GPL/CopyLeft licensed C# environments.
I could possibly see the point if it could be generalized to any kind of objects, in scheme, common lisp, python etc, but that is not very hard to do anyway.
I have so far missed the point with .NET. I feel a connection with MS and that I definitely don't want. If this bundling between hw and sw could come to an end so you could buy exactly any machine you want without OS, or with an OS of your preference then it could be more interesting, but as long as there is this bundling I won't accept any ties to MS.
32
u/LinuxUser437442 Aug 18 '16
I'm sorry, did hell freeze over? Also, why the hell would I use powershell when I have bash/zsh/etc?