java.lang.CharSequence is a useful interface which abstracts out the common methods of String and StringBuffer/StringBuilder. Perhaps fan should have a similar mixin? I think the java libraries would look a lot cleaner if they had had CharSequence from the beginning.
brianThu 1 May 2008
We've toyed around with something like that, but haven't pulled the trigger. But remember that you can use duck typing via the "->" operator as long as the types have the same method signatures.
mike Thu 1 May 2008
java.lang.CharSequence is a useful interface which abstracts out the common methods of String and StringBuffer/StringBuilder. Perhaps fan should have a similar mixin? I think the java libraries would look a lot cleaner if they had had CharSequence from the beginning.
brian Thu 1 May 2008
We've toyed around with something like that, but haven't pulled the trigger. But remember that you can use duck typing via the "->" operator as long as the types have the same method signatures.