covariant returns for CharBuffer.subSequence

David M. Lloyd david.lloyd at redhat.com
Sat Aug 2 14:01:42 UTC 2008


On 08/02/2008 04:54 AM, Ulf Zibis wrote:
> Am 01.08.2008 10:39, Alan Bateman schrieb:
>> In particular the Buffer flip/etc. methods come up quite often as the 
>> more specific return type would facilitate better method invocation 
>> chaining.
> 
> Some time ago I've discussed this with Neal Gafter. My conclusion is, 
> that those problems could be solved by a "this" return type.

Or just by using covariant return types, which already exist in the 
language for this very purpose.  Why is everyone so keen to tear up the 
language, in order to add solutions to problems that already have solutions?

- DML



More information about the core-libs-dev mailing list