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: README.md
+40-21Lines changed: 40 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
<br />
2
2
3
-
<h1>ECMAScript Try Statements</h1>
3
+
<h1>ECMAScript Try Operator</h1>
4
4
5
5
> [!WARNING]
6
-
> After extensive discussion and feedback, the proposal was renamed from `Safe Assignment Operator` to `Try Statements`. _Click here to view the [original proposal](https://github.com/arthurfiorette/proposal-try-statements/tree/proposal-safe-assignment-operator)._
6
+
> After extensive discussion and feedback, the proposal was renamed from `Safe Assignment Operator` to `Try Operator`. _Click here to view the [original proposal](https://github.com/arthurfiorette/proposal-try-operator/tree/proposal-safe-assignment-operator)._
A detailed discussion about this topic is available at [GitHub Issue #54](https://github.com/arthurfiorette/proposal-try-statements/issues/54) for those interested.
243
+
A detailed discussion about this topic is available at [GitHub Issue #54](https://github.com/arthurfiorette/proposal-try-operator/issues/54) for those interested.
225
244
226
245
### Never throws
227
246
@@ -238,7 +257,7 @@ Regardless of the type of error that might occur, `try` will catch it. For examp
238
257
- If accessing the `thing` property on `some` throws an error.
239
258
- Any other exception that can arise on that line of code.
240
259
241
-
All potential errors are safely caught and encapsulated within the `try`statements.
260
+
All potential errors are safely caught and encapsulated within the `try`operator expression.
242
261
243
262
### Parenthesis Required for Object Literals
244
263
@@ -256,7 +275,7 @@ This behavior mirrors how JavaScript differentiates blocks and object literals:
256
275
({ a:1 }) // object with a key `a` and a number `1`
257
276
```
258
277
259
-
A detailed discussion about this topic is available at [GitHub Issue #55](https://github.com/arthurfiorette/proposal-try-statements/issues/55) for those interested.
278
+
A detailed discussion about this topic is available at [GitHub Issue #55](https://github.com/arthurfiorette/proposal-try-operator/issues/55) for those interested.
260
279
261
280
### Void Operations
262
281
@@ -370,7 +389,7 @@ try {
370
389
}
371
390
```
372
391
373
-
A detailed discussion about this topic is available at [GitHub Issue #13](https://github.com/arthurfiorette/proposal-try-statements/issues/13) for those interested.
392
+
A detailed discussion about this topic is available at [GitHub Issue #13](https://github.com/arthurfiorette/proposal-try-operator/issues/13) for those interested.
374
393
375
394
<br />
376
395
@@ -400,7 +419,7 @@ There is no guarantee that `createException` always returns an exception. Someon
400
419
401
420
Even though such cases are uncommon, they can occur. The `ok` value is crucial to mitigate these runtime risks effectively.
402
421
403
-
For a more in-depth explanation of this decision, refer to [GitHub Issue #30](https://github.com/arthurfiorette/proposal-try-statements/issues/30).
422
+
For a more in-depth explanation of this decision, refer to [GitHub Issue #30](https://github.com/arthurfiorette/proposal-try-operator/issues/30).
0 commit comments