User loginNavigation |
Best default sequence?Most languages have a default concrete data type for collections (arrays in C and Perl, lists in Lisp and Haskell, etc.) that get used more often then they probably should. By default, I mean languages generally have better syntax for a particular data type that gets used most often (or better pattern matching, or better names for constructors (think ":" and "[]" or "cadr") or historical reasons or predominance in tutorial material, etc.). But for new languages, what criteria should we use when choosing an appropriate default? For a new functional language, I'm thinking about using catenable deques (with O(1) append, cons, and snoc) or democratic sequences (or some other balanced tree with O(lg n) complexity for almost all operations). Is there something out there that might make for an even better default? Or are the current batch of defaults already close enough to optimal? (And please feel free to opine about different collection defaults in imperative and logic languages as well). By Greg Buchholz at 2005-10-18 20:30 | LtU Forum | previous forum topic | next forum topic | other blogs | 12178 reads
|
Browse archives
Active forum topics |
Recent comments
3 weeks 2 days ago
43 weeks 3 days ago
43 weeks 4 days ago
43 weeks 4 days ago
1 year 13 weeks ago
1 year 17 weeks ago
1 year 19 weeks ago
1 year 19 weeks ago
1 year 22 weeks ago
1 year 26 weeks ago