]> Witch of Git - ess/commit
Change List to use Cow<[Sexp]> instead of Vec<Sexp> develop
authorCassie Jones <code@witchoflight.com>
Tue, 11 Feb 2020 01:42:07 +0000 (20:42 -0500)
committerCassie Jones <code@witchoflight.com>
Tue, 11 Feb 2020 01:42:07 +0000 (20:42 -0500)
commit7757e58229d077a4f2fd1fe4beb4062e006b04b8
tree00e280e71ceee006e7214d89bc91be306e024e13
parente37e69f732c0d4c4a597eec385919a4c16b04a46
Change List to use Cow<[Sexp]> instead of Vec<Sexp>

We would like to use Cow<[Sexp]> since this enables storing slices
inside the lists, and therefore allows you to calculate "cdr"
efficiently. It doesn't improve "cons" at all, however, so this might
not be the right option.
src/parser.rs
src/sexp.rs