diff options
| author | bors <bors@rust-lang.org> | 2014-10-15 09:57:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-10-15 09:57:18 +0000 |
| commit | e4761c85b52ac9953a7ac1f89d9e09a79389b4fd (patch) | |
| tree | 8c1ab4e012d3921797cd46ff7f93f64858d8d7ef /src/rustllvm/RustWrapper.cpp | |
| parent | 71dfa5befe2ddf3d16fb5e23f6922125cf1cf5e6 (diff) | |
| parent | 1ce5a5626e39326835b33946b102d2a0d8baee93 (diff) | |
| download | rust-e4761c85b52ac9953a7ac1f89d9e09a79389b4fd.tar.gz rust-e4761c85b52ac9953a7ac1f89d9e09a79389b4fd.zip | |
auto merge of #17962 : jkleint/rust/guide-vectors, r=steveklabnik
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. Show off new, easy-to-read [a..b] slice syntax.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
