I guess it's because of earlier versions, but there are also questions
on efficiency of enums in compiled code going on at the moment.  For
example:

*  GWT write up on possible future optimisations for enums:
 http://code.google.com/p/google-web-toolkit/wiki/EnumOptimizations

* another write up here: 
http://timepedia.blogspot.com/2009/04/gwts-type-system-is-more-powerful-than.html

//Adam

On 11 Maj, 15:02, Antoine <[email protected]> wrote:
> Hello.
>
> I’m currently playing with GWT and there is something I don’t
> understand: why do you use private classes and not enumeration. For
> instance, the location of a widget in the DockPanel is using the
> DockLayoutConstant and not an enumeration.
>
> One of the biggest advantage of the enum is the switch/case
> capability, otherwise you have to create a lot of "else if" with the
> private class way. What’s the fastest? Do you use private classes for
> a compatibility reasons when GWT was in Java 1.4? Or are there some
> other reasons of doing so?
>
> It’s just something I was wondering, thanks a lot for any lights you
> might give on this issue.
>
> Antoine.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to