[clug] Why isn't Java popular on the Linux Desktop?
Sam Couter
sam at couter.id.au
Wed Jul 15 03:02:24 MDT 2009
Francis James Whittle <fudje at grapevine.net.au> wrote:
> I guess it's just my personal whinging there really. I don't like
> having to write exactly the same extra code for every project because
> the language won't "just do" file I/O. To my mind it's a step backwards
> to not just be able to treat an opened file object as a stream.
final InputStream in = new FileInputStream(new File("/whatever"));
It's not as concise as Python, but it's not that bad. The steps that come
afterwards are pretty bad, but that goes for any stream in Java. Files
aren't especially hard.
--
Sam Couter | mailto:sam at couter.id.au
OpenPGP fingerprint: A46B 9BB5 3148 7BEA 1F05 5BD5 8530 03AE DE89 C75C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/linux/attachments/20090715/3fcd6c70/attachment-0001.pgp>
More information about the linux
mailing list