Closures were partying until 4am whilst objects were still a mere glint in
their father's eye.  Who are you calling "late"?


On 2 May 2012 17:51, phil swenson <[email protected]> wrote:

> closures may lead to some sort of event construct, I'm not sure.
>
> Closures are at least 10 years late to the party.
>
> On Wed, May 2, 2012 at 10:40 AM, Ricky Clarkson
> <[email protected]> wrote:
> > Right, it's an object. Java doesn't have methods as first class values.
> > You'll find my name on the First Class Methods proposal from 2008 or
> so.  I
> > agree but don't think adding a new kind of type and syntax just for
> events
> > is flexible enough.
> >
> > On May 2, 2012 12:54 PM, "phil swenson" <[email protected]> wrote:
> >>
> >> click listener isn't a method
> >>
> >> On Wed, May 2, 2012 at 8:53 AM, Ricky Clarkson <
> [email protected]>
> >> wrote:
> >> > sendButton.addMouseListener(clickListener);
> >> >
> >> > On May 2, 2012 11:51 AM, "phil swenson" <[email protected]>
> wrote:
> >> >>
> >> >> >> I'd like to know what does he mean with "no events".
> >> >>
> >> >> in Delphi you could do stuff like:
> >> >>
> >> >> sendButton.onClick = ClickHandlerMethod
> >> >>
> >> >>
> >> >>
> >> >> I don't even want to think about what the equivalent is in Java.
> >> >>
> >> >> Basically, you need function pointers.
> >> >>
> >> >>
> >> >>
> >> >> On Wed, May 2, 2012 at 2:30 AM, Fabrizio Giudici
> >> >> <[email protected]> wrote:
> >> >> > On Tue, 01 May 2012 19:41:57 +0200, Casper Bang
> >> >> > <[email protected]>
> >> >> > wrote:
> >> >> >
> >> >> >> On Tuesday, May 1, 2012 6:46:05 PM UTC+2, phil swenson wrote:
> >> >> >>>
> >> >> >>>
> >> >> >>> I remember being very disappointed when I first looked at Java
> for
> >> >> >>> writing desktop UIs.  It was a huge step backwards from all the
> >> >> >>> lessons learned from Delphi and VB in the 90s.  No properties, no
> >> >> >>> events,  layout hell, overly complicated APIs.
> >> >> >>>
> >> >> >>
> >> >> >> And yet, the hardcore Java developer will defend it vigorously.
> >> >> >
> >> >> >
> >> >> > This is not true as most Java developers know that Swing is pretty
> >> >> > old.
> >> >> > BTW,
> >> >> > getting back to the original Phil's statement, apart from the fact
> >> >> > that
> >> >> > you
> >> >> > can have properties in the language with an annotation processor,
> I'd
> >> >> > like
> >> >> > to know what does he mean with "no events". One of the problems of
> >> >> > Swing
> >> >> > is
> >> >> > perhaps that there are too many (kinds of) events.
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Fabrizio Giudici - Java Architect, Project Manager
> >> >> > Tidalwave s.a.s. - "We make Java work. Everywhere."
> >> >> > [email protected]
> >> >> > http://tidalwave.it - http://fabriziogiudici.it
> >> >> >
> >> >> > --
> >> >> > You received this message because you are subscribed to the Google
> >> >> > Groups
> >> >> > "The 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.
> >> >> >
> >> >>
> >> >> --
> >> >> You received this message because you are subscribed to the Google
> >> >> Groups
> >> >> "The 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.
> >> >>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups
> >> > "The 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.
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "The 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.
> >>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "The 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.
>
> --
> You received this message because you are subscribed to the Google Groups
> "The 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.
>
>


-- 
Kevin Wright
mail: [email protected]
gtalk / msn : [email protected]
quora: http://www.quora.com/Kevin-Wright
google+: http://gplus.to/thecoda
<[email protected]>
twitter: @thecoda
vibe / skype: kev.lee.wright
steam: kev_lee_wright

"My point today is that, if we wish to count lines of code, we should not
regard them as "lines produced" but as "lines spent": the current
conventional wisdom is so foolish as to book that count on the wrong side
of the ledger" ~ Dijkstra

-- 
You received this message because you are subscribed to the Google Groups "The 
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