Hacker News new | ask | show | jobs
by out-of-ideas 854 days ago
nushell requires double quotes around values? looks like powershell where everything-is-an-object of something-else
1 comments

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.