hyln9 / ikarus

Optimizing incremental native-code compiler for R6RS scheme. This is a forked repository.
https://launchpad.net/ikarus
Other
5 stars 0 forks source link

Request: parameter controlling printing of quote and friends #223

Closed hyln9 closed 10 years ago

hyln9 commented 10 years ago

I'd like to be able to have the printer/writer print/write (quote whatever) as (quote whatever) instead of 'whatever and same for all the others like unquote, syntax, etc.

Usually, I want 'whatever, but I'm working on something where I actually want it to look like (quote whatever).

Thanks.

Launchpad Details: #LP229368 Derick Eddington - 2008-05-11 17:59:59 -0400

hyln9 commented 10 years ago

Done in 1473. Now you can set the pretty format (which affects write, display, pretty-print, and format) to #f in order to disable special formatting:

(parameterize ([(pretty-format 'quote) #f]) (printf "~s\n" '''''12)) (quote (quote (quote (quote 12))))

Launchpad Details: #LPC Abdulaziz Ghuloum - 2008-05-12 01:03:38 -0400