[Pharo-dev] Lazy File Opening in FileHandle

Guillermo Polito guillermopolito at gmail.com
Fri Jan 4 03:48:22 EST 2019


>
> On Fri, Jan 4, 2019 at 12:26 AM Martin McClure <martin at hand2mouse.com>
> wrote:
>
>>
>>
>
>>
>> Lazy opening is rather odd conceptually, and doesn't seem to meet the
>> principle of least surprise, so I'd think deprecating it would be
>> reasonable.
>>
>
> Agreed.
> Personally I think FileHandle needs some cleanup, to me it looks strange
> that it acquires a vm file handle, and then it operates on it through
> primitives, when the File class already does that properly.
>

And even just change the code to do it in a non-lazy way. I don't think the
lazy opening is exposed through any of FileSystem's API.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20190104/61bd37ed/attachment.html>


More information about the Pharo-dev mailing list