Stefan Marr, Benoit Daloze,
"Few versatile vs. many specialized collections: how to design a collection library for exploratory programming?"
: Proceeding Programming'18 Companion Conference Companion of the 2nd International Conference on Art, Science, and Engineering of Programming, ACM New York, NY, USA, Seite(n) 135-143, 4-2018, ISBN: 978-1-4503-5513-1
Original Titel:
Few versatile vs. many specialized collections: how to design a collection library for exploratory programming?
Sprache des Titels:
Englisch
Original Buchtitel:
Proceeding Programming'18 Companion Conference Companion of the 2nd International Conference on Art, Science, and Engineering of Programming
Original Kurzfassung:
While an integral part of all programming languages, the design
of collection libraries is rarely studied. This work briefly reviews
the collection libraries of 14 languages to identify possible design
dimensions. Some languages have surprisingly few but versatile
collections, while others have large libraries with many specialized
collections. Based on the identified design dimensions, we argue
that a small collection library with only a sequence, a map, and a
set type are a suitable choice to facilitate exploratory programming.
Such a design minimizes the number of decisions programmers
have to make when dealing with collections, and it improves dis-
coverability of collection operations. We further discuss techniques
that make their implementation practical from a performance per-
spective. Based on these arguments, we conclude that languages
which aim to support exploratory programming should strive for
small and versatile collection libraries