| OLD | NEW |
| 1 # Usage | 1 # Usage |
| 2 | 2 |
| 3 The [Dart Dev Compiler](README.md) (DDC) is an **experimental** | 3 The [Dart Dev Compiler](README.md) (DDC) is an **experimental** |
| 4 development tool and transpiler. In particular, the ES6 backend is | 4 development tool and transpiler. In particular, the ES6 backend is |
| 5 still incomplete, under heavy development, and not yet ready for | 5 still incomplete, under heavy development, and not yet ready for |
| 6 production use. | 6 production use. |
| 7 | 7 |
| 8 With those caveats, we welcome feedback. | 8 With those caveats, we welcome feedback. |
| 9 | 9 |
| 10 ## Installation | 10 ## Installation |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 void main() { | 25 void main() { |
| 26 List<String> list = ["hello", "world"]; | 26 List<String> list = ["hello", "world"]; |
| 27 | 27 |
| 28 for (var item in list) { | 28 for (var item in list) { |
| 29 print(item + 42); | 29 print(item + 42); |
| 30 } | 30 } |
| 31 } | 31 } |
| 32 ``` | 32 ``` |
| 33 | 33 |
| 34 the Dart analyzer will not report a static error or warning even | 34 the Dart analyzer will not report a static error or warning even |
| 35 though the program will clearly fail (in checked mode). Running DDC: | 35 though the program will clearly fail (in checked mode). Running with --strong |
| 36 mode: |
| 36 | 37 |
| 37 $ dartdevc main.dart | 38 $ dartanalyzer --strong main.dart |
| 38 | 39 |
| 39 will display a severe error. Modifying `42` to `'42'` will | 40 will display a severe error. Modifying `42` to `'42'` will |
| 40 correct the error. | 41 correct the error. |
| 41 | 42 |
| 42 ## Generating ES6 | 43 ## Generating ES6 |
| 43 | 44 |
| 44 For code that statically type checks, DDC can be used to generate EcmaScript 6 (
ES6) code: | 45 For code that statically type checks, DDC can be used to generate EcmaScript 6 (
ES6) code: |
| 45 | 46 |
| 46 $ dartdevc -o out main.dart | 47 $ dartdevc -o out main.dart |
| 47 | 48 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 72 an example. | 73 an example. |
| 73 | 74 |
| 74 ## Feedback | 75 ## Feedback |
| 75 | 76 |
| 76 Please file issues in our [GitHub issue tracker](https://github.com/dart-lang/de
v_compiler/issues). | 77 Please file issues in our [GitHub issue tracker](https://github.com/dart-lang/de
v_compiler/issues). |
| 77 | 78 |
| 78 You can also view or join our [mailing list](https://groups.google.com/a/dartlan
g.org/forum/#!forum/dev-compiler). | 79 You can also view or join our [mailing list](https://groups.google.com/a/dartlan
g.org/forum/#!forum/dev-compiler). |
| 79 | 80 |
| 80 | 81 |
| 81 | 82 |
| OLD | NEW |