Re: when, good people, will you provide a racket download for ubuntu users that are on the recent version lucid (10.04)? It's impossible to teach without it. Or should we stay with scheme?<br><br>Respectfully, and thanks for all your fine works,<br>
John Wagner<br><br><div class="gmail_quote">On Sat, Sep 4, 2010 at 1:49 PM, <span dir="ltr"><<a href="mailto:users-request@racket-lang.org">users-request@racket-lang.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Send users mailing list submissions to<br>
<a href="mailto:users@racket-lang.org">users@racket-lang.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.racket-lang.org/users/listinfo" target="_blank">http://lists.racket-lang.org/users/listinfo</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:users-request@racket-lang.org">users-request@racket-lang.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:users-owner@racket-lang.org">users-owner@racket-lang.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of users digest..."<br>
<br>
<br>
[Please handle Racket list administrative tasks through the Web:<br>
<a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a>]<br>
<br>
Today's Topics:<br>
<br>
1. Shurely Shome Mishtake (wooks .)<br>
2. Re: Shurely Shome Mishtake (Robby Findler)<br>
3. Re: Shurely Shome Mishtake (Matthias Felleisen)<br>
4. Re: Shurely Shome Mishtake (Neil Van Dyke)<br>
5. Re: Shurely Shome Mishtake (wooks .)<br>
6. Re: Shurely Shome Mishtake (Noel Welsh)<br>
7. Re: Shurely Shome Mishtake (YC)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 4 Sep 2010 21:22:07 +0100<br>
From: "wooks ." <<a href="mailto:wookiz@hotmail.com">wookiz@hotmail.com</a>><br>
To: <<a href="mailto:users@racket-lang.org">users@racket-lang.org</a>><br>
Subject: [racket] Shurely Shome Mishtake<br>
Message-ID: <SNT116-W5223789B6BF264CB4916EEC08E0@phx.gbl><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
<br>
(case 8<br>
((8 9 10) 'hello)<br>
(else 'goodbye)) -> hello<br>
<br>
(case "8"<br>
(("8" "9" "10") 'hello)<br>
(else 'goodbye)) -> goodbye<br>
<br>
I'm working in Pretty Big<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.racket-lang.org/users/archive/attachments/20100904/6d4344b7/attachment-0001.html" target="_blank">http://lists.racket-lang.org/users/archive/attachments/20100904/6d4344b7/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 4 Sep 2010 15:28:18 -0500<br>
From: Robby Findler <<a href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>><br>
To: "wooks ." <<a href="mailto:wookiz@hotmail.com">wookiz@hotmail.com</a>><br>
Cc: users <<a href="mailto:users@racket-lang.org">users@racket-lang.org</a>><br>
Subject: Re: [racket] Shurely Shome Mishtake<br>
Message-ID:<br>
<<a href="mailto:AANLkTikd11BO4fFPE3wtns%2BOcWrviez1fJf-2G380ibd@mail.gmail.com">AANLkTikd11BO4fFPE3wtns+OcWrviez1fJf-2G380ibd@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
No mistake. case uses eqv? for comparison (on the quoted thing in each clause).<br>
<br>
<a href="http://docs.racket-lang.org/reference/case.html?q=case#%28form._%28%28lib._racket/private/more-scheme..rkt%29._case%29%29" target="_blank">http://docs.racket-lang.org/reference/case.html?q=case#%28form._%28%28lib._racket/private/more-scheme..rkt%29._case%29%29</a><br>
<br>
Robby<br>
<br>
On Sat, Sep 4, 2010 at 3:22 PM, wooks . <<a href="mailto:wookiz@hotmail.com">wookiz@hotmail.com</a>> wrote:<br>
> (case 8<br>
> ? ((8 9 10) 'hello)<br>
> ? (else 'goodbye)) -> hello<br>
><br>
> (case "8"<br>
> ? (("8" "9" "10") 'hello)<br>
> ? (else 'goodbye)) -> goodbye<br>
><br>
> I'm working in Pretty Big<br>
><br>
><br>
> _________________________________________________<br>
> ?For list-related administrative tasks:<br>
> ?<a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
><br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sat, 4 Sep 2010 16:29:59 -0400<br>
From: Matthias Felleisen <<a href="mailto:matthias@ccs.neu.edu">matthias@ccs.neu.edu</a>><br>
To: "wooks ." <<a href="mailto:wookiz@hotmail.com">wookiz@hotmail.com</a>><br>
Cc: <a href="mailto:users@racket-lang.org">users@racket-lang.org</a><br>
Subject: Re: [racket] Shurely Shome Mishtake<br>
Message-ID: <<a href="mailto:0837C8FC-6ABE-4CEE-AEDB-3E37FC45534B@ccs.neu.edu">0837C8FC-6ABE-4CEE-AEDB-3E37FC45534B@ccs.neu.edu</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
<br>
No this is correct:<br>
<br>
Welcome to DrRacket, version 5.0.1.5--2010-09-02(7fead28/g) [3m].<br>
Language: Pretty Big; memory limit: 512 MB.<br>
> (eqv? 8 8)<br>
#t<br>
> (eqv? "8" "8")<br>
#f<br>
><br>
<br>
Plus read the docs on case.<br>
<br>
<br>
On Sep 4, 2010, at 4:22 PM, wooks . wrote:<br>
<br>
> (case 8<br>
> ((8 9 10) 'hello)<br>
> (else 'goodbye)) -> hello<br>
><br>
> (case "8"<br>
> (("8" "9" "10") 'hello)<br>
> (else 'goodbye)) -> goodbye<br>
><br>
> I'm working in Pretty Big<br>
><br>
> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Sat, 04 Sep 2010 16:35:50 -0400<br>
From: Neil Van Dyke <<a href="mailto:neil@neilvandyke.org">neil@neilvandyke.org</a>><br>
To: "wooks ." <<a href="mailto:wookiz@hotmail.com">wookiz@hotmail.com</a>><br>
Cc: <a href="mailto:users@racket-lang.org">users@racket-lang.org</a><br>
Subject: Re: [racket] Shurely Shome Mishtake<br>
Message-ID: <<a href="mailto:4C82ADA6.5060800@neilvandyke.org">4C82ADA6.5060800@neilvandyke.org</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
wooks . wrote at 09/04/2010 04:22 PM:<br>
> (case "8"<br>
> (("8" "9" "10") 'hello)<br>
> (else 'goodbye)) -> goodbye<br>
<br>
Unfortunately, you can't use "case" on strings, for somewhat esoteric<br>
reasons:<br>
<br>
<a href="http://docs.racket-lang.org/reference/case.html" target="_blank">http://docs.racket-lang.org/reference/case.html</a><br>
<a href="http://docs.racket-lang.org/reference/eval-model.html#%28part._model-eq%29" target="_blank">http://docs.racket-lang.org/reference/eval-model.html#(part._model-eq)</a><br>
<br>
The R5RS document gives some more explanation and examples of what can<br>
be compared with eq/eqv/equal:<br>
<br>
<a href="http://docs.racket-lang.org/r5rs-std/r5rs-Z-H-9.html#%_sec_6.1" target="_blank">http://docs.racket-lang.org/r5rs-std/r5rs-Z-H-9.html#%_sec_6.1</a><br>
<br>
You might find that "cond" or a hashtable can be used instead. Or maybe<br>
you don't actually need strings at this point in the code, and there is<br>
a better way to do it.<br>
<br>
--<br>
<a href="http://www.neilvandyke.org/" target="_blank">http://www.neilvandyke.org/</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Sat, 4 Sep 2010 21:40:56 +0100<br>
From: "wooks ." <<a href="mailto:wookiz@hotmail.com">wookiz@hotmail.com</a>><br>
To: <<a href="mailto:matthias@ccs.neu.edu">matthias@ccs.neu.edu</a>><br>
Cc: <a href="mailto:users@racket-lang.org">users@racket-lang.org</a><br>
Subject: Re: [racket] Shurely Shome Mishtake<br>
Message-ID: <SNT116-W126A4D8C245B2AC4BFF6C1C08E0@phx.gbl><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
<br>
One mans correct is another mans WAD (Works as Designed).<br>
<br>
> Subject: Re: [racket] Shurely Shome Mishtake<br>
> From: <a href="mailto:matthias@ccs.neu.edu">matthias@ccs.neu.edu</a><br>
> Date: Sat, 4 Sep 2010 16:29:59 -0400<br>
> CC: <a href="mailto:users@racket-lang.org">users@racket-lang.org</a><br>
> To: <a href="mailto:wookiz@hotmail.com">wookiz@hotmail.com</a><br>
><br>
><br>
> No this is correct:<br>
><br>
> Welcome to DrRacket, version 5.0.1.5--2010-09-02(7fead28/g) [3m].<br>
> Language: Pretty Big; memory limit: 512 MB.<br>
> > (eqv? 8 8)<br>
> #t<br>
> > (eqv? "8" "8")<br>
> #f<br>
> ><br>
><br>
> Plus read the docs on case.<br>
><br>
><br>
> On Sep 4, 2010, at 4:22 PM, wooks . wrote:<br>
><br>
> > (case 8<br>
> > ((8 9 10) 'hello)<br>
> > (else 'goodbye)) -> hello<br>
> ><br>
> > (case "8"<br>
> > (("8" "9" "10") 'hello)<br>
> > (else 'goodbye)) -> goodbye<br>
> ><br>
> > I'm working in Pretty Big<br>
> ><br>
> > _________________________________________________<br>
> > For list-related administrative tasks:<br>
> > <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.racket-lang.org/users/archive/attachments/20100904/f22b28d5/attachment-0001.html" target="_blank">http://lists.racket-lang.org/users/archive/attachments/20100904/f22b28d5/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Sat, 4 Sep 2010 21:47:23 +0100<br>
From: Noel Welsh <<a href="mailto:noelwelsh@gmail.com">noelwelsh@gmail.com</a>><br>
To: "wooks ." <<a href="mailto:wookiz@hotmail.com">wookiz@hotmail.com</a>><br>
Cc: <a href="mailto:users@racket-lang.org">users@racket-lang.org</a><br>
Subject: Re: [racket] Shurely Shome Mishtake<br>
Message-ID:<br>
<AANLkTimfa_feU7HrYo3rDN=cQtV=<a href="mailto:xz9utFY8yS1YwObR@mail.gmail.com">xz9utFY8yS1YwObR@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
On Sat, Sep 4, 2010 at 9:40 PM, wooks . <<a href="mailto:wookiz@hotmail.com">wookiz@hotmail.com</a>> wrote:<br>
> One mans correct is another mans WAD (Works as Designed).<br>
<br>
The semantics of case are a bit annoying at times. To guess as the<br>
reason for this, I suspect it is to allow efficient implementation for<br>
switching on numbers and the like. There is cond for everything else.<br>
<br>
HTH,<br>
N.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Sat, 4 Sep 2010 13:49:12 -0700<br>
From: YC <<a href="mailto:yinso.chen@gmail.com">yinso.chen@gmail.com</a>><br>
To: "wooks ." <<a href="mailto:wookiz@hotmail.com">wookiz@hotmail.com</a>><br>
Cc: <a href="mailto:users@racket-lang.org">users@racket-lang.org</a>, <a href="mailto:matthias@ccs.neu.edu">matthias@ccs.neu.edu</a><br>
Subject: Re: [racket] Shurely Shome Mishtake<br>
Message-ID:<br>
<AANLkTi=<a href="mailto:zjoOKCKsbCJS71YjwsvrUZhTwQLxR46ive9Tq@mail.gmail.com">zjoOKCKsbCJS71YjwsvrUZhTwQLxR46ive9Tq@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
I don't know whether planet modules can be used within Pretty Big, but I<br>
have a case/equal? and a case/string-ci=? defined in my bzlib/base module -<br>
feel free to try it out or take a look at it (in base.ss).<br>
<br>
> (require (planet bzlib/base))<br>
> (case/equal? "abc"<br>
(("def" "ghi" "ijk") 1)<br>
(("abc") 2)<br>
(else 3))<br>
2<br>
> (case/string-ci=? "abc"<br>
(("def" "ghi" "ijk") 1)<br>
(("ABC") 2)<br>
(else 3))<br>
2<br>
<br>
<br>
On Sat, Sep 4, 2010 at 1:40 PM, wooks . <<a href="mailto:wookiz@hotmail.com">wookiz@hotmail.com</a>> wrote:<br>
<br>
> One mans correct is another mans WAD (Works as Designed).<br>
><br>
> > Subject: Re: [racket] Shurely Shome Mishtake<br>
> > From: <a href="mailto:matthias@ccs.neu.edu">matthias@ccs.neu.edu</a><br>
> > Date: Sat, 4 Sep 2010 16:29:59 -0400<br>
> > CC: <a href="mailto:users@racket-lang.org">users@racket-lang.org</a><br>
> > To: <a href="mailto:wookiz@hotmail.com">wookiz@hotmail.com</a><br>
><br>
> ><br>
> ><br>
> > No this is correct:<br>
> ><br>
> > Welcome to DrRacket, version 5.0.1.5--2010-09-02(7fead28/g) [3m].<br>
> > Language: Pretty Big; memory limit: 512 MB.<br>
> > > (eqv? 8 8)<br>
> > #t<br>
> > > (eqv? "8" "8")<br>
> > #f<br>
> > ><br>
> ><br>
> > Plus read the docs on case.<br>
> ><br>
> ><br>
> > On Sep 4, 2010, at 4:22 PM, wooks . wrote:<br>
> ><br>
> > > (case 8<br>
> > > ((8 9 10) 'hello)<br>
> > > (else 'goodbye)) -> hello<br>
> > ><br>
> > > (case "8"<br>
> > > (("8" "9" "10") 'hello)<br>
> > > (else 'goodbye)) -> goodbye<br>
> > ><br>
> > > I'm working in Pretty Big<br>
> > ><br>
> > > _________________________________________________<br>
> > > For list-related administrative tasks:<br>
> > > <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
> ><br>
><br>
> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
><br>
<br>
<br>
<br>
--<br>
Cheers,<br>
yc<br>
<br>
Taming the software dragon - <a href="http://dragonmaestro.com" target="_blank">http://dragonmaestro.com</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.racket-lang.org/users/archive/attachments/20100904/881545a4/attachment.html" target="_blank">http://lists.racket-lang.org/users/archive/attachments/20100904/881545a4/attachment.html</a>><br>
<br>
End of users Digest, Vol 61, Issue 13<br>
*************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>John Wagner<br>Alhambra and Los Angeles<br><br>