Re: [Scheme-reports] vector-insert John Cowan 21 Aug 2014 17:12 UTC

Kevin Wortman scripsit:

> IMO there are enough use cases where the growing feature is unneeded and
> it's overhead is unwanted, that the best compromise is to have both a
> raw fixed-size array type (i.e. an R7RS-small vector), _and_ a higher
> level self-resizing array. It is not hard to write a self-resizing
> array on top of a fixed-size array. That's what e.g. C++ and Java do.

+1

And if you want it to grow in the middle as well as the end, see BuffersCowan,
an API for (traditional) Emacs-style gap buffers.

--
John Cowan          http://www.ccil.org/~cowan        cowan@ccil.org
"Hacking is the true football."  --F.W. Campbell (1863) in response to a
successful attempt to ban shin-kicking from soccer.  Today, it's biting.

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports