| OLD | NEW |
| 1 Dart does operators. | 1 Dart does operators. |
| 2 Not only does it define them, | 2 Not only does it define them, |
| 3 but it lets you redefine many of them. | 3 but it lets you redefine many of them. |
| 4 | 4 |
| 5 The following table shows all of Dart's operators, | 5 The following table shows all of Dart's operators, |
| 6 in order of precedence. | 6 in order of precedence. |
| 7 | 7 |
| 8 {% include language-tour/operators/_table.html %} | 8 {% include language-tour/operators/_table.html %} |
| 9 | 9 |
| 10 For example, the <b>%</b> operator | 10 For example, the <b>%</b> operator |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 WILLCHANGE | 403 WILLCHANGE |
| 404 call() <em>(</em><code>()</code><em>)</em> <!-- (function application: ()) --> <
br> | 404 call() <em>(</em><code>()</code><em>)</em> <!-- (function application: ()) --> <
br> |
| 405 {% endcomment %} | 405 {% endcomment %} |
| 406 equals() <em>(</em><code>==</code><em>)</em> <!-- (==) --> * | 406 equals() <em>(</em><code>==</code><em>)</em> <!-- (==) --> * |
| 407 {% comment %} | 407 {% comment %} |
| 408 <br> | 408 <br> |
| 409 negate <em>(<code>-expr</code>)</em> <!-- (unary minus: -) --> ** | 409 negate <em>(<code>-expr</code>)</em> <!-- (unary minus: -) --> ** |
| 410 {% endcomment %} | 410 {% endcomment %} |
| 411 </p> | 411 </p> |
| 412 | 412 |
| 413 <aside class="note" markdown="1"> | |
| 414 {% comment %} | |
| 415 WILLCHANGE: will need to tweak the wording. | |
| 416 {% endcomment %} | |
| 417 \* The **==** operator can currently be overridden, | |
| 418 but not for long. | |
| 419 Soon the way to customize the behavior of **==** | |
| 420 will be by overriding the **equals()** method. | |
| 421 </aside> | |
| 422 | |
| 423 <p markdown="1"> | 413 <p markdown="1"> |
| 424 For an example of overriding operators, | 414 For an example of overriding operators, |
| 425 see [Operators](#classes-operators) in the Classes section. | 415 see [Operators](#classes-operators) in the Classes section. |
| 426 </p> | 416 </p> |
| 427 | 417 |
| 428 </section> | 418 </section> |
| 429 | 419 |
| 430 | 420 |
| 431 <section id="op-summary" markdown="1"> | 421 <section id="op-summary" markdown="1"> |
| 432 ### Summary of operators | 422 ### Summary of operators |
| 433 | 423 |
| 434 Dart operators should look and act familiar. | 424 Dart operators should look and act familiar. |
| 435 Behind the scenes, an operator is a specially named method | 425 Behind the scenes, an operator is a specially named method |
| 436 that's invoked on its first operand. | 426 that's invoked on its first operand. |
| 437 As a result, operand order can make a difference: | 427 As a result, operand order can make a difference: |
| 438 a+b might not give the same result as b+a. | 428 a+b might not give the same result as b+a. |
| 439 You can override many operators. | 429 You can override many operators. |
| 440 </section> | 430 </section> |
| OLD | NEW |