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
Copy file name to clipboardExpand all lines: doc/docs/doc/README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3538,7 +3538,7 @@ with str := "Hello"
3538
3538
</pre>
3539
3539
</YueDisplay>
3540
3540
3541
-
Accessing special keys with `[]` in a `with` statement.
3541
+
You can access special keys with `[]` in a `with` statement.
3542
3542
3543
3543
```moonscript
3544
3544
with tb
@@ -3561,6 +3561,18 @@ with tb
3561
3561
</pre>
3562
3562
</YueDisplay>
3563
3563
3564
+
`with?` is an enhanced version of `with` syntax, which introduces an existential check to safely access objects that may be nil without explicit null checks.
0 commit comments