Re: Printing QUOTE.
[email protected] Sat, 29 Nov 2025 14:20:36 -0500
| Newsgroups | gmane.lisp.steel-bank.general |
|---|---|
| Message-ID | <[email protected]> |
> On Sat, Nov 29, 2025 at 6:11 PM Stas Boukarev <[email protected]> wrote: > > In SBCL, (write ''foo :pretty nil) > That doesn't work everywhere. > > On Sat, Nov 29, 2025 at 8:03 PM Avishek Gorai via Sbcl-help > <[email protected]> wrote: > > > > How to print "(QUOTE FOO)" instead of "'FOO"? > > Or, (let ((*print-pretty* nil)) (print ''foo)) ;;=> (QUOTE FOO) ;;=> 'FOO *print-pretty* ;;=> T (print ''foo) ;;=> 'FOO ;;=> 'FOO See: http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Body/fun_writecm_p_rintcm_princ.html http://www.ai.mit.edu/projects/iiip/doc/CommonLISP/HyperSpec/Body/var_stprint-prettyst.html -- The lyf so short, the craft so long to lerne. - Geoffrey Chaucer, The Parliament of Birds. _______________________________________________ Sbcl-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sbcl-help