On Tue, Sep 21, 2010 at 11:25 AM, Casper Bang <[email protected]> wrote:

> I agree, both aren't exactly success stories. Microsoft has the WP7
> card up their sleeve though. Similarly JavaFX Script could've been
> wonderful on Android, the current XML markup coupled with the weird R
> file and associated manual casting is just not worthy of a modern
> mobile stack anno 2010.
>

You can't really avoid casting when you're reading a Java hierarchy off an
XML file. The important part is to limit this casting to its bare minimum
(getting the root), and Android does exactly that.

I'd argue that Android's R system, which provides static type safety for
resources, is actually pretty solid. I can't count how many times I've had
regular Java code crash at runtime because a .properties or .xml file could
not be found... This can't happen on Android: the compiler will tell you
right away.

-- 
Cédric

-- 
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