Add description of compound type signatures#2042
Open
nome wants to merge 1 commit intonushell:mainfrom
Open
Conversation
list, record and table type signatures were mentioned in several places, but never discussed in detail. The recently added oneof type declaration wasn't documented anywhere (except in the blog post introducing nu 0.105.0, where it was added). Add sections for list, record, table and oneof compound types to the Language Reference Guide. Add a link to the relevant reference page in the "Custom Commands"/"Parameters"/"Parameter Types" section of the book.
7babd31 to
1ab5ba3
Compare
hustcer
reviewed
Jan 4, 2026
| { given_name: Bob } | first_key | ||
| # => given_name | ||
|
|
||
| # this will pass type checking (but produce a runtime error) |
Contributor
There was a problem hiding this comment.
In the current version of nushell, {} | first_key returns an empty result instead of producing a runtime error.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
list, record and table type signatures were mentioned in several places, but never discussed in detail. The recently added oneof type declaration wasn't documented anywhere (except in the blog post introducing nu 0.105.0, where it was added).
Add sections for list, record, table and oneof compound types to the Language Reference Guide. Add a link to the relevant reference page in the "Custom Commands"/"Parameters"/"Parameter Types" section of the book.