4 ms·
It also always returns its result, and doesn't have the option of printing to standard-out (you have to use printf for that) (format t "hello world") From PCL
by felideon 16y ago
It also always returns its result, and doesn't have the option of printing to standard-out (you have to use printf for that)
(format t "hello world")
From PCL: "T is shorthand for the stream STANDARD-OUTPUT, while NIL causes FORMAT to generate its output to a string, which it then returns."
- _delirium 16y agoHe was complaining that the format in Scheme (and in PLT Racket) doesn't have that CL feature.
- Inaimathi 16y agoThat's exactly what I meant. The CL version has options, the Scheme version just takes a format string (which has fewer possible directives than its CL counterpart), which makes it less flexible and slightly more verbose. To be fair, it's not exactly a straightforward paragraph, and I was talking about two different functions both named "format", so I can see how it might have been confusing.