On Mon, Jan 20, 2020 at 19:01 Norman Gaywood <ngayw...@une.edu.au> wrote:

>
> On Tue, 21 Jan 2020 at 03:12, Brad Gilbert <b2gi...@gmail.com> wrote:
>
>>     .say for lines
>>
>
> Since .say calls gist(), would it be not be better/safer to call .put
> instead?
>
>    .put for lines
>

If being set directly from `lines`, I can’t see when there would be a
difference unless you’re playing with encodings. If you entire program is
just this, they’re the same for normal Unix files. (I have no idea what
happens in the case of sparse files, abnormal files, devices, etc.)

And “safer” is in the eye of the beholder... if you’re outputting
diagnostics for immediate human consumption, a gist is less likely to ruin
formatted output.

Trey

Reply via email to