mention phrase_to_file/3 which is being prepared in #1100

This commit is contained in:
Markus Triska
2021-11-17 21:33:15 +01:00
parent 3c988d555f
commit d72cb74ffa

View File

@@ -57,7 +57,7 @@
If at all possible, format_//2 should be used, to stress pure parts If at all possible, format_//2 should be used, to stress pure parts
that enable easy testing etc. If necessary, you can emit the list Ls that enable easy testing etc. If necessary, you can emit the list Ls
with maplist(put_char, Ls) or, much faster, with format("~s", [Ls]). with maplist(put_char, Ls) or, much faster, with format("~s", [Ls]).
Ideally, however, you use phrase_to_file/2 or phrase_to_stream/2 Ideally, however, you use phrase_to_file/[2,3] or phrase_to_stream/2
from library(pio) to write the described list directly to a file from library(pio) to write the described list directly to a file
or stream, respectively: phrase_to_stream(format_(..., [...]), S). or stream, respectively: phrase_to_stream(format_(..., [...]), S).
The advantage of this is that an ideal implementation writes The advantage of this is that an ideal implementation writes