from what I read about Closures, it won't change the way you use command
pattern at all, it'll simplify greatly the way you write nested classes.
ex:
Before closure
command.execute(new myasynccallback() {
void onSuccess(Result result) {
doSomething
}
}
With closure
command.execute(new myasynccallback() {
doSomething()
}
Thus removing some boiler plate. If you asking me about onFail... I usually
have MyAsyncCallback extends AsyncCallback and deal with errors here.
There's a lot more to Closure than this, but at least, you'll know that
it'll change nothing to the way you use command pattern, it'll only simplify
it.
Cheers,
On Tue, Jul 20, 2010 at 10:03 AM, Sebastian Rothbucher <
[email protected]> wrote:
> Hi, well, without wanting to be destructive: where is the big
> difference compared to the command pattern? I really like GWT's
> stability and maturity. I'd like to keep it as simple and
> straightforward as possible. It would be great if that stays as the
> design goal - and whether or not J7 closures come in, I still like the
> command pattern...
> Regards
> Sebastian
>
> On Jul 19, 8:15 pm, "[email protected]" <[email protected]> wrote:
> > I think GWT should refrain from including Java 7 features until it is
> > released at least...
> >
> > On Jul 19, 1:48 pm, Daniel Simons <[email protected]> wrote:
> >
> > > Hey Guys,
> >
> > > I was wondering if there have been plans centered around including Java
> 7
> > > features such as closures to future versions of GWT.
> >
> > > Thanks,
> > > Daniel
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
Christian Goudreau
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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/google-web-toolkit?hl=en.