You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- NOTE: if you wanna write a section about a breaking change, when it's a very important one,
32
54
please add the following snippet to have a "warning" banner :)
33
55
> see [an example](https://www.nushell.sh/blog/2023-09-19-nushell_0_85_0.html#pythonesque-operators-removal)
@@ -131,7 +153,7 @@ scope variables
131
153
</div>
132
154
</div>
133
155
134
-
### Optional parameters' type now reflects the fact it might be `null`
156
+
####Optional parameters' type now reflects the fact it might be `null`
135
157
136
158
The (parse time) types of optional parameters and flags _without a default value_ are now a union of their type `T` and `nothing`
137
159
@@ -161,7 +183,7 @@ Demonstrating with LSP inlay hints:
161
183
[2m ~[0m
162
184
```
163
185
164
-
### More precise type widening
186
+
####More precise type widening
165
187
166
188
More type information is preserved. e.g.:
167
189
@@ -172,7 +194,7 @@ let elem = $list.0
172
194
173
195
Previously `$elem`'s type would be `list<oneof<int, string>>`, now `$elem`'s type is `oneof<list<int>, list<string>>`.
174
196
175
-
### Operator type checking now accounts of `oneof` types
197
+
####Operator type checking now accounts of `oneof` types
176
198
177
199
Nushell as language tries to strike a careful balance between correctness and convenience.
178
200
One should be able to trust nu's type system will help them write correct and robust scripts, but nu shouldn't shouldn't get in the way of a nice REPL experience.
0 commit comments