Add elvis operator for indexing.

This commit is contained in:
Stephen Chung
2022-06-12 00:32:12 +08:00
parent b9cbeb65d6
commit 2b44778a5c
7 changed files with 88 additions and 16 deletions

View File

@@ -19,7 +19,7 @@ Bug fixes
Reserved Symbols
----------------
* `?`, `??`, `?.` and `!.` are now reserved symbols.
* `?`, `??`, `?.`, `?[` and `!.` are now reserved symbols.
Deprecated API's
----------------
@@ -29,7 +29,7 @@ Deprecated API's
New features
------------
* The _Elvis operator_ (`?.`) is now supported for property access and method calls.
* The _Elvis operators_ (`?.` and `?[`) are now supported for property access, method calls and indexing.
* The _null-coalescing operator_ (`??`) is now supported to short-circuit `()` values.
Enhancements