News for hackers. Stuff that matters.
Re:Xonsh: Python-powered, cross-platform, Unix-gazing shell by out-of-ideas on Wednesday February 14, 2024 @05:06PM (#39376223)
nushell requires double quotes around values? looks like powershell where everything-is-an-object of something-else
Re:Xonsh: Python-powered, cross-platform, Unix-gazing shell by __MatrixMan__ on Wednesday February 14, 2024 @06:29PM (#39377065)
If you want those values to be strings, yes. For instance, it knows that this is a list of ints:

    $ [1, 2] | math max
      2
And here are some strings:

    $ ["a", "c"] | str join "b"
    abc
And there are tables

    $ [
       {name: "foo", value: 6},
       {name: "bar", value: 9}
      ] | where value > 7 | get name
    bar
And that's about as weird as the types get.