Re: [racket-users] namespace-variable-value thinks functions are bound to syntax

2017-10-31 Thread Junsong Li
That works! Thanks. On Mon, Oct 30, 2017 at 9:35 AM Shu-Hung You < shu-hung@eecs.northwestern.edu> wrote: > Yes, because keyword functions expand to macro definitions that try to > optimize keyword applications. > > namespace-require and namespace-variable-value are relatively > low-level ope

Re: [racket-users] namespace-variable-value thinks functions are bound to syntax

2017-10-30 Thread Shu-Hung You
Yes, because keyword functions expand to macro definitions that try to optimize keyword applications. namespace-require and namespace-variable-value are relatively low-level operations on modules and namespaces. Using dynamic-require could be a bit easier: #lang racket (module p racket (provid

[racket-users] namespace-variable-value thinks functions are bound to syntax

2017-10-29 Thread Junsong Li
Hello list, In the following program, racket thinks foo2, and foo3 are bound to syntax. Is this expected behavior? -- File: go.rkt #lang racket (module p racket (provide (all-defined-out)) (define (foo0 a b) (+ a b)) (define (foo1 a b [c 3]) (+ a b c)) (define (foo2 a b [c 3] #