diff options
| author | John Kleint <jk@hinge.co> | 2014-10-11 20:37:16 -0400 |
|---|---|---|
| committer | John Kleint <jk@hinge.co> | 2014-10-14 23:23:57 -0400 |
| commit | 1ce5a5626e39326835b33946b102d2a0d8baee93 (patch) | |
| tree | 42a4495f26885935d038e2efb8a2b213b878b301 /src/rustllvm/RustWrapper.cpp | |
| parent | 40b244973671e6fb571de5ad45491d403ef8b636 (diff) | |
| download | rust-1ce5a5626e39326835b33946b102d2a0d8baee93.tar.gz rust-1ce5a5626e39326835b33946b102d2a0d8baee93.zip | |
Guide: develop the exposition of arrays, vectors, and slices.
The array is the fundamental concept; vectors are growable arrays, and slices are views into either. Show common array ops up front: length and iteration. Mention arrays are immutable by default. Highlight definite initialization and bounds-checking as safety features. Show that you only need a type suffix on one element of initializers. Explain that vectors are a value-add library type over arrays, not a fundamental type; show they have the same "interface." Motivate slices as efficient views into arrays; explain you can slice vectors, Strings, &str because they're backed by arrays.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
