[racket-dev] renaming things
Yes. You want to set the current-print handler. You probably want to
use pretty-print to do the actual printing and it has hooks to let you
control how things like booleans are printed when they are embedded in
larger things.
Robby
On Sun, Jun 12, 2011 at 12:19 PM, Matias Eyzaguirre <dented42 at gmail.com> wrote:
> This may not be the best place to ask this, nevertheless.
>
> For my own amusement I am creating a language module, and in it I
> would like to rename some of Racket's primitives.
>
> Specifically I would like to make a small change to booleans. I would
> like it so that #T can be used instead of #t. Racket as it is, allows
> that. However, evaluating something like (eq? (quote thing) (quote
> stuff)) returns #f, and not #F as I would like . I imaging this would
> 'just' be a matter of changing how the printer chooses to output
> booleans. My question is therefore, is this possible? Can the printer
> be extended in this manner?
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/dev
>