about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorJohn Kleint <jk@hinge.co>2014-10-11 20:37:16 -0400
committerJohn Kleint <jk@hinge.co>2014-10-14 23:23:57 -0400
commit1ce5a5626e39326835b33946b102d2a0d8baee93 (patch)
tree42a4495f26885935d038e2efb8a2b213b878b301 /src/rustllvm/RustWrapper.cpp
parent40b244973671e6fb571de5ad45491d403ef8b636 (diff)
downloadrust-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