Message from discussion
Problem with case
Received: by 10.224.213.1 with SMTP id gu1mr3339057qab.7.1347924184812;
Mon, 17 Sep 2012 16:23:04 -0700 (PDT)
X-BeenThere: racket-users@googlegroups.com
Received: by 10.224.187.129 with SMTP id cw1ls12879432qab.9.gmail; Mon, 17 Sep
2012 16:23:04 -0700 (PDT)
Received: by 10.224.223.84 with SMTP id ij20mr8584705qab.5.1347924184671;
Mon, 17 Sep 2012 16:23:04 -0700 (PDT)
Received: by 10.224.223.84 with SMTP id ij20mr8584704qab.5.1347924184654;
Mon, 17 Sep 2012 16:23:04 -0700 (PDT)
Return-Path: <users-boun...@racket-lang.org>
Received: from champlain.ccs.neu.edu (champlain.ccs.neu.edu. [129.10.115.116])
by gmr-mx.google.com with ESMTPS id t29si2990271qcz.1.2012.09.17.16.23.04
(version=TLSv1/SSLv3 cipher=OTHER);
Mon, 17 Sep 2012 16:23:04 -0700 (PDT)
Received-SPF: neutral (google.com: 129.10.115.116 is neither permitted nor denied by domain of users-boun...@racket-lang.org) client-ip=129.10.115.116;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 129.10.115.116 is neither permitted nor denied by domain of users-boun...@racket-lang.org) smtp.mail=users-boun...@racket-lang.org
Received: from champlain.ccs.neu.edu (localhost.localdomain [127.0.0.1])
by champlain.ccs.neu.edu (8.14.4/8.14.4) with ESMTP id q8HNMCFY008874;
Mon, 17 Sep 2012 19:22:15 -0400
Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com
[209.85.214.174])
by champlain.ccs.neu.edu (8.14.4/8.14.4) with ESMTP id q8HNM6SC008835
for <us...@lists.racket-lang.org>; Mon, 17 Sep 2012 19:22:06 -0400
Received: by obbuo13 with SMTP id uo13so10821437obb.33
for <us...@lists.racket-lang.org>; Mon, 17 Sep 2012 16:22:06 -0700 (PDT)
d=google.com; s=20120113;
h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf
:dkim-signature:mime-version:in-reply-to:references:date:message-id
:subject:from:to:cc:content-type:x-gm-message-state;
bh=yIDPAIYnqNJ2I8RbDhoMRooplLPUo62rjiaS7BJvam0=;
b=S655Kn867Cqq0yyGwrNDldmit2Trosu1s3I+73hyQk1SKVrVi/71DIRvWDP0qpnnIZ
Cl7zOD1o5Gzi9C0ZSgfpKo2R7LQKHuAJPnIkFAs49zMv2Sv+OJoy4xJ+978ZtKTSKZDR
8FYK6PcFCxuRR953QBdFxDHVhqS1rS9QGAwtMIeUyL1XEuL125WdZwvqFeBUBSIGzfTN
IYAnWKH/Pbi4rhT619R1bgSQp64m7gHOiCQDlP7RC96MzMO1K/Ip8UtmQtkHw7NvUuVP
5BoWhj7beATdCkVd52GjdWYRuYqSW1qsqCDibVwgH8Kcc+vOWYQi6zrPq7rjyfZSiuzN
sg3w==
Received: by 10.60.170.18 with SMTP id ai18mr13047569oec.125.1347924126034;
Mon, 17 Sep 2012 16:22:06 -0700 (PDT)
X-Forwarded-To: us...@lists.racket-lang.org
X-Forwarded-For: us...@plt-scheme.org us...@lists.racket-lang.org
Delivered-To: us...@racket-lang.org
Received: by 10.76.13.162 with SMTP id i2csp34782oac;
Mon, 17 Sep 2012 16:22:05 -0700 (PDT)
Received: by 10.180.94.164 with SMTP id dd4mr19127583wib.1.1347924124667;
Mon, 17 Sep 2012 16:22:04 -0700 (PDT)
Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47])
by mx.google.com with ESMTPS id r48si15546850weo.46.2012.09.17.16.22.04
(version=TLSv1/SSLv3 cipher=OTHER);
Mon, 17 Sep 2012 16:22:04 -0700 (PDT)
Received-SPF: pass (google.com: domain of zeppi...@gmail.com designates
74.125.82.47 as permitted sender) client-ip=74.125.82.47;
Received: by wgbfa7 with SMTP id fa7so4568021wgb.16
for <us...@racket-lang.org>; Mon, 17 Sep 2012 16:22:04 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.180.82.39 with SMTP id f7mr19128137wiy.2.1347924124002; Mon,
17 Sep 2012 16:22:04 -0700 (PDT)
Received: by 10.216.97.3 with HTTP; Mon, 17 Sep 2012 16:22:03 -0700 (PDT)
In-Reply-To: <5057AF20.1090...@ccs.neu.edu>
References: <CAEEP09D39AMiTozxDCA5WUx4bkE0KtvRY=Ez-dxgpXESigu...@mail.gmail.com>
<CAKfDxxwJZwPGtejSXh-jGSUFYuj4jxO2eAoA7Wh8_7EE_Q5...@mail.gmail.com>
<5057AF20.1090...@ccs.neu.edu>
Date: Mon, 17 Sep 2012 19:22:03 -0400
Message-ID: <CAKfDxxx2Z-UD+odPVYFcFvBJz4o1qUn84+23krVPGz9RLXt...@mail.gmail.com>
From: Jon Zeppieri <zeppi...@gmail.com>
To: David Van Horn <dvanh...@ccs.neu.edu>
X-Gm-Message-State: ALoCoQkBpX3p2LZw4JL+od3Jka1En76l8uW+cGtpucTtSdjGV6Q6UOwsNzp63leIs5U+6aTCzzYG
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW
autolearn=ham version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
champlain.ccs.neu.edu
Cc: users <us...@racket-lang.org>
Subject: Re: [racket] Problem with case
X-BeenThere: us...@racket-lang.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Racket Users <users.racket-lang.org>
List-Unsubscribe: <http://lists.racket-lang.org/users/options>,
<mailto:users-requ...@racket-lang.org?subject=unsubscribe>
List-Archive: <http://lists.racket-lang.org/users/archive/>
List-Post: <mailto:us...@racket-lang.org>
List-Help: <mailto:users-requ...@racket-lang.org?subject=help>
List-Subscribe: <http://lists.racket-lang.org/users/listinfo>,
<mailto:users-requ...@racket-lang.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2057686541=="
Sender: users-boun...@racket-lang.org
Errors-To: users-boun...@racket-lang.org
--===============2057686541==
Content-Type: multipart/alternative; boundary=f46d041826ea9868fd04c9ee0acf
--f46d041826ea9868fd04c9ee0acf
Content-Type: text/plain; charset=ISO-8859-1
On Mon, Sep 17, 2012 at 7:15 PM, David Van Horn <dvanh...@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.
--f46d041826ea9868fd04c9ee0acf
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<br><br><div class=3D"gmail_quote">On Mon, Sep 17, 2012 at 7:15 PM, David V=
an Horn <span dir=3D"ltr"><<a href=3D"mailto:dvanh...@ccs.neu.edu" targe=
t=3D"_blank">dvanh...@ccs.neu.edu</a>></span> wrote:<br><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad=
ding-left:1ex">
<div class=3D"im">On 9/17/12 7:11 PM, Jon Zeppieri wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
The fact that the first one works at all should probably be considered a<br=
>
bug. The syntax of case here:<br>
<br>
<a href=3D"http://docs.racket-lang.org/reference/case.html?q=3Dcase#(form._=
((lib._racket/private/more-scheme..rkt)._case))" target=3D"_blank">http://d=
ocs.racket-lang.org/<u></u>reference/case.html?q=3Dcase#(<u></u>form._((lib=
._racket/private/<u></u>more-scheme..rkt)._case))</a><br>
<br>
dictates that the constants in a case clause be parenthesized.<br>
</blockquote>
<br></div>
But they *are* parenthesized... after the reader expands '.<br>
<br>
That's why you can do weird things like ((lambda 'x '''=
'''x) add1 0).<span class=3D"HOEnZb"><font color=3D"#888888"><b=
r>
<br>
David<br><br></font></span></blockquote><div><br></div><div>Oh my. Right. T=
hat's... =A0Wow.=A0</div><div>I hadn't considered the possibilities=
for obfuscating racket code.</div></div>
--f46d041826ea9868fd04c9ee0acf--
--===============2057686541==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
____________________
Racket Users list:
http://lists.racket-lang.org/users
--===============2057686541==--