The specific reason why I'm happy with static methods in interfaces is that
I'm planning on updating Functional Java for Java 8, and fj.F is.. a..
class.  So you can't use it as the target for a lambda expression.  It used
to be an interface, but the static method temptation was too great and it
was converted to an abstract class so that static methods could be added.

I converted it back to an interface and found that I had to rehouse the
static methods, breaking all callers of those static methods.  With static
methods in interfaces the only callers I'll need to break to do that are
the ones who implemented it with a named instead of an anonymous class,
which is probably reasonably rare for that particular library.  Even so
they'll only need to change 'extends' to 'implements' so it's no great
shakes.


On Fri, Jan 18, 2013 at 1:08 PM, Simon Ochsenreither <
[email protected]> wrote:

>
> I'm quite happy about the static methods in interfaces.
>>
>
> For a language which has already gone down the rabbit hole of having
> “static” elements, I think the change is nice, because the interface can
> now be used for factory methods. No “Arrays.asList” non-sense anymore!
>
>
>
> Please pick on a different feature to complain about the process with. :)
>
>
> The point I'm making is that the decision whether something gets the
> “official” treatment or is merged in behind the curtains seems to be driven
> more by marketing aspects and less so by technical aspects.
>
> So, if people want to get stuff into Java, don't make too much noise,
> don't wake sleeping dogs/politicians and try to sneak it in.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Java Posse" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/javaposse/-/REbwJ3iun8wJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to