|
From: | Kacper Gutowski |
Subject: | Re: ⎕FIO Buffer limit is 5000 Bytes |
Date: | Fri, 30 Oct 2020 17:55:43 +0100 |
On Fri, Oct 30, 2020 at 09:17:27AM -0500, Blake McBride wrote:
I'd like to see your API design proposal.
It's not like I want to change anything, but wouldn't it be great to be able to write it simply as something like {⍵,⎕FIO[6] fd}⍣≡⍬ ? Disregarding errors, this would be possible if ⎕FIO[6] returned empty vector when result is empty instead of a zero, but the major problem is not in FIO but in that underlying fread doesn't distinguish between EOF and errors in the first place.
-k
[Prev in Thread] | Current Thread | [Next in Thread] |