[racket] users Digest, Vol 61, Issue 13

From: John Wagner (gnujohn at gmail.com)
Date: Sat Sep 4 20:25:02 EDT 2010

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?

Respectfully, and thanks for all your fine works,
John Wagner

On Sat, Sep 4, 2010 at 1:49 PM, <users-request at racket-lang.org> wrote:

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



-- 
John Wagner
Alhambra and Los Angeles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100904/aa21b27a/attachment.html>

Posted on the users mailing list.