Re: File API to separate reading from files

On Wed, 19 Aug 2009 21:21:54 +0200, Jonas Sicking <jonas@sicking.cc> wrote:

> I do like the idea of having a stream primitive. I think we'll need
> that for other things in the future such as reading data from a
> camera, or reading data from a microphone.

I quite concur, and for the widget space, actually writing data is a real  
use-case.

> However I'm not convinced that we should force people to use streams
> to deal with the simple use case of reading data from a file. In 95%
> (if not more) of the cases the user simply wants to get the contents
> of the file, and so forcing them to do that using:

Does the presence of an IOStream primitive exclude getAs*?
-- 
Arve Bersvendsen

Opera Software ASA, http://www.opera.com/

Received on Wednesday, 19 August 2009 22:08:31 UTC