3 ms·
There is a third option which is to add specific data structures to the existing list of generic data structures with out making user defined generics.
by kasey_junk 9y ago
There is a third option which is to add specific data structures to the existing list of generic data structures with out making user defined generics.
- pjmlp 9y agoWhich leads to the question when would they stop adding special case structures?
- kasey_junk 9y ago(shrug) they clearly are ok with some generics. In my mind if they argued that they'd rather support more widely used data structures at the language level instead of user defined generics thats a logically consistent position. In fact, if I could get a) a type safe concurrent map b) a promise/future construct and c) a fast concurrent queue for single writer multi-reader, I'd probably be ok with the set of generic data structures provided in the language. If they fixed their variance rules along the way as well, I'd probably lose any actual arguments against the type system when it comes to the systems I build. The question is of course, are those the only ones that fall into that category? Who knows but those are the ones I run into the most pain for.