In fact the question comes from the fact that they are not polymorphic and
you should know if you're manipulating a closable stream or not...
Maybe a solution is indeed to use #writeStreamDo:, that should behave well
even for in-memory, collection streams, no?
On Thu, Jun 29, 2017 at 4:58 PM, Sve
> On 29 Jun 2017, at 16:07, Jérémie Regnault
> wrote:
>
> Hi,
>
> I am writing tests with streams, and I noticed that a stream opened on a
> string doesn't close, but FileStreams do close. Is it normal ?
How do you mean that ? That FileStreams close automatically ?
That is indeed the case,
Hi,
I am writing tests with streams, and I noticed that a stream opened on a
string doesn't close, but FileStreams do close. Is it normal ?
--
Jérémie Regnault