[racket] Problem with case

From: Jon Zeppieri (zeppieri at gmail.com)
Date: Mon Sep 17 19:22:03 EDT 2012

On Mon, Sep 17, 2012 at 7:15 PM, David Van Horn <dvanhorn at ccs.neu.edu>wrote:

> On 9/17/12 7:11 PM, Jon Zeppieri wrote:
>
>> The fact that the first one works at all should probably be considered a
>> bug. The syntax of case here:
>>
>> http://docs.racket-lang.org/**reference/case.html?q=case#(**
>> form._((lib._racket/private/**more-scheme..rkt)._case))<http://docs.racket-lang.org/reference/case.html?q=case#(form._((lib._racket/private/more-scheme..rkt)._case))>
>>
>> dictates that the constants in a case clause be parenthesized.
>>
>
> But they *are* parenthesized... after the reader expands '.
>
> That's why you can do weird things like ((lambda 'x ''''''x) add1 0).
>
> David
>
>
Oh my. Right. That's...  Wow.
I hadn't considered the possibilities for obfuscating racket code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120917/f4e8485b/attachment.html>

Posted on the users mailing list.