cperivol
2022-1-30 19:52:28

but… why?


shu--hung
2022-1-30 20:15:35

The scope of bindings introduced by define is the entire enclosing definition context. This is the same mechanism behind flexible mutually-recursive definitions: (define (compute) ... (define (even? x) ... (odd? x) ...) (define whatever ...) (define (odd? x) ... (even? x) ...) ... (define (double x) ... (double (sub1 x)) ...) ...)


massung
2022-1-31 03:49:20

Does racket have a null output port so I can make some functions that display output in a “debug” mode, but then do something like:

(parameterize ([current-output-port (null-output-port)]) (my-function)) ?


massung
2022-1-31 03:50:23

nvm.. just found open-output-nowhere (odd name)


tivypuzu
2022-1-31 07:50:34

@tivypuzu has joined the channel