Re: [racket-users] Some stuff about "case".

2020-06-01 Thread Jon Zeppieri
On Mon, Jun 1, 2020 at 3:52 PM Jens Axel Søgaard wrote: > > Den man. 1. jun. 2020 kl. 20.53 skrev Christopher Lemmer Webber > : > > > I think `case` were more important before `match` arrived. > If you want to see how `case` can be implemented without hash-tables, look at > William D Clinger's pa

Re: [racket-users] Some stuff about "case".

2020-06-01 Thread Jens Axel Søgaard
Den man. 1. jun. 2020 kl. 20.53 skrev Christopher Lemmer Webber < cweb...@dustycloud.org>: > As I started typing this email and looking into the definition of case, > I realized my assumptions are wrong. > > What I needed: something like case which dispatches on symbols, except > not auto-quoting

[racket-users] Some stuff about "case".

2020-06-01 Thread Christopher Lemmer Webber
As I started typing this email and looking into the definition of case, I realized my assumptions are wrong. What I needed: something like case which dispatches on symbols, except not auto-quoting the arguments... I needed to evaluate them from the lexical environment. So: (let ([x 'foo])