So I heard somewhere that around v70, interfaces can be generic now? Is this a documented feature? Is it fully supported and reliable? I want to update one of my projects to use this, but since it's a library, I don't want to do it if it's not an officially-supported feature of the language yet.
Nitty-gritty details for those of you who care: Specifically, I want to implement my version of Comparator<T> (from monkey-timsort) as an interface so that classes can specify themselves as a comparator when sent to a generic Sorter<T> (of which TimSort<T> will eventually become one of, once all of this is standardized). I still hope to standardize sorting into all of the default monkey containers in a generic way; generic interfaces could simplify the coding patterns to do this...
|