(no title)
DixieDev | 2 years ago
I wouldn't recommend it for day-to-day, production usage just yet, but definitely worth keeping an eye on if you're not a huge fan of the typical stringly-typed shells.
DixieDev | 2 years ago
I wouldn't recommend it for day-to-day, production usage just yet, but definitely worth keeping an eye on if you're not a huge fan of the typical stringly-typed shells.
sixbrx|2 years ago
But in nu, it's more like you're just dealing with collections as in most programming languages. If your collection isn't amenable to being generated by a simple expression like a map or fold, then you have to create a collection, prep the collection to be what you want it to be, then you return it.
In that sense it's really different from both Powershell and traditional shells, and more like just using a traditional programming language. So in Nu I miss being able to just "yield" a value from anywhere without staging into a temporary collection first.
hudclark|2 years ago
This release added the ability to "yield" values via a generator fashion. It's called `unfold`, but will be renamed to `generate` in the next release: https://www.nushell.sh/commands/docs/unfold.html.
majkinetor|2 years ago
It is designed by such people. Not sure why PowerShell tables and cross-platform support is not top notch \_(ツ)_/
Effort is salutable, but let's be realistic, Nushell is 10+ years from PowerShell.
bbkane|2 years ago
goku12|2 years ago
What aspect of the other shells qualify them as 'stringly-typed'? Shells seem quite happy piping raw binary data, and there are commands that can deal with binary streams (like wc). The shell also doesn't seem to do anything with the data, unless specifically asked to do so (eval, backticks, etc). (genuinely ignorant and curious).
Kinrany|2 years ago
In this sense, dealing with raw bytes is worse.
There is no reason we can't use CLIs that provide higher level operations, but there's just not enough standardization.
lynx23|2 years ago
kaba0|2 years ago
To make it display something as trivial as the frequency of your CPU, the network speed, etc, you have to randomly parse some ad-hoc, program-dependent format that may be locale-dependent! If these could speak a proper language, one could just take the value of this field/object/element and be done with it.