[racket-users] How to make unit test for error "unbound identifier"?

2017-04-25 Thread Jinzhou Zhang
Hi there, I am writing a simple macro `if-let` that tried to bind the condition to a variable. ``` (define-simple-macro (if-let (~describe "binding pairs" [binding:expr value:expr]) (~describe "\"then\" clause" then:expr) (~describe "\"e

[racket-users] Re: How to make unit test for error "unbound identifier"?

2017-04-25 Thread Jinzhou Zhang
Sorry for forgot to mention Racket version. It is 6.8. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more option

[racket-users] Any good way to shadow a required module?

2017-05-01 Thread Jinzhou Zhang
e the identifiers manually. Because any later change in data/collection (shadow another identifier) will break my package. Best Regards, Jinzhou Zhang -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and sto

[racket-users] Re: Any good way to shadow a required module?

2017-05-01 Thread Jinzhou Zhang
On Tuesday, May 2, 2017 at 1:04:13 PM UTC+8, Matthew Butterick wrote: > On Monday, May 1, 2017 at 9:55:10 PM UTC-7, Jinzhou Zhang wrote: > > Thus my question is: is there any good way to shadow a required module? > > `subtract-in` > > http://docs.racket-lang.org/reference/re