On Fri, Jan 9, 2009 at 10:17 AM, Lothar Kimmeringer <[email protected]> wrote: > cobracbh schrieb: >> Is any possible that GWT's Java2JavaScript could compile ThreadLocal >> in future ? > > To what? Inside the browser, there is only one Thread running.
That doesn't necessarily mean ThreadLocal doesn't make sense--ThreadLocal basically degenerates into a static reference in the case of a single-threaded app. Perhaps, for the sake of code reusability, ThreadLocal should eventually be included. There would have to be a good argument for it, though, and none was provided. Anyone arguing for adding ThreadLocal would probably have to overcome the fact that adding ThreadLocal might confuse developers into thinking that threading is supported in GWT. Threading will not be supported in GWT for a long time to come simply because the majors browsers won't support threaded Javascript for a long time to come. The GWT developers have an aversion to confusing GWT users and rightly so, I think. Ian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
