Re: [racket] Wikipedia article improvements

2011-08-15 Thread Joan Arnaldich
Asumu Takikawa writes: > Suggestions: > -- More code examples (Haskell has a separate linked page for them) > -- Expanded features section (new page, linked from main page) I just added a wikipedia page with Racket code examples. Most of them come from Racket's main page. I tried to categorize

Re: [racket] Adding raw string syntax

2011-08-15 Thread Joan Arnaldich
Greg Hendershott writes: > Plus in the case of Racket it might help to have more mundane > examples, rather than fewer. Such examples help convey: "See, you can > do practical stuff in Racket just like in your blub language. There's > all this other power and expressiveness waiting for you to try

Re: [racket] PLaneT category listing?

2011-08-15 Thread Danny Yoo
On Mon, Aug 15, 2011 at 2:54 PM, Asumu Takikawa wrote: > Is there currently any way to navigate PLaneT packages by category on > the website? Is something like that possible to add to the main page? It would also be nice just to have a page on the PLaneT site that just produces a raw, programmati

Re: [racket] HtDP Exercise 32.3.2

2011-08-15 Thread Matthias Felleisen
Correct! Good planning. -- Matthias On Aug 15, 2011, at 4:05 PM, Racket Noob wrote: > But, if I choose your second approach (function that picks and returns one of > the feasible configurations), than such function cannot be used in next > exercise 32.3.3 in which I have to construct functio

Re: [racket] HtDP Exercise 32.3.2

2011-08-15 Thread Racket Noob
But, if I choose your second approach (function that picks and returns one of the feasible configurations), than such function cannot be used in next exercise 32.3.3 in which I have to construct function solitaire for solving a puzzle. From: racketn...@hotmail.com To: matth...@ccs.neu.edu Sub

Re: [racket] HtDP Exercise 32.3.2

2011-08-15 Thread Matthias Felleisen
On Aug 15, 2011, at 3:10 PM, Racket Noob wrote: > I don't understand this exercise: > > Exercise 32.3.2. Develop a function that, given a board and the board > position of a peg, determines whether or not the peg can jump. We call such a > peg enabled. > Develop a function that, given a boar

Re: [racket] unsyntax in Scribble examples

2011-08-15 Thread Matthew Flatt
At Mon, 15 Aug 2011 10:40:53 -0500, Casey Klein wrote: > Compiling the following Scribble program complains that x is unbound > on the last line: > > #lang scribble/doc > > @(require scribble/eval) > > @examples[#:eval (make-base-eval) > (define x #'q) > #`(a #,x c)] > > Of

[racket] HtDP Exercise 32.3.2

2011-08-15 Thread Racket Noob
I don't understand this exercise: Exercise 32.3.2. Develop a function that, given a board and the board position of a peg, determines whether or not the peg can jump. We call such a peg enabled.Develop a function that, given a board and the board position of an enabled peg, creates a board th

[racket] PLaneT category listing?

2011-08-15 Thread Asumu Takikawa
Is there currently any way to navigate PLaneT packages by category on the website? Is something like that possible to add to the main page? Examples of what I mean: http://hackage.haskell.org/packages/archive/pkg-list.html http://search.cpan.org/ http://wiki.call-cc.org/chicken-projects/egg-ind

Re: [racket] Adding raw string syntax

2011-08-15 Thread Greg Hendershott
I just want to suggest the idea that it's positive for the promotion of Racket to have many usage examples, even if it's stuff not particularly easy or special to do in Racket. Something I think we've all seen with technology marketing (yeah, I said the m-word): When I've built something, there's

[racket] syntax-local-value mystery

2011-08-15 Thread Casey Klein
Could someone explain why the program below raises a syntax error? The error goes away if you make either of the following changes: 1. enable errortrace, or 2. change `syntax' to `quote' in the `expand' argument. #lang racket/load ; Change #1 ;(require errortrace) (module t racket (pro

[racket] unsyntax in Scribble examples

2011-08-15 Thread Casey Klein
Compiling the following Scribble program complains that x is unbound on the last line: #lang scribble/doc @(require scribble/eval) @examples[#:eval (make-base-eval) (define x #'q) #`(a #,x c)] Of course, it is unbound in the expression doing the eval-ing, but that shouldn't

Re: [racket] DrRacket and Modules

2011-08-15 Thread Jos Koot
BTW, I avoid problems by almost always requiring with 'only-in'. Prefixes can do as well, of course, but I don't like long identifiers. Jos -Original Message- From: Vincent St-Amour [mailto:stamo...@ccs.neu.edu] Sent: lunes, 15 de agosto de 2011 15:32 To: Jos Koot Cc: 'Harry Spier'; user

Re: [racket] DrRacket and Modules

2011-08-15 Thread Jos Koot
Correct. Thanks. Jos -Original Message- From: Vincent St-Amour [mailto:stamo...@ccs.neu.edu] Sent: lunes, 15 de agosto de 2011 15:32 To: Jos Koot Cc: 'Harry Spier'; users@racket-lang.org Subject: Re: [racket] DrRacket and Modules At Mon, 15 Aug 2011 10:56:52 +0200, Jos Koot wrote: > Abo

Re: [racket] DrRacket and Modules

2011-08-15 Thread Vincent St-Amour
At Mon, 15 Aug 2011 10:56:52 +0200, Jos Koot wrote: > About (define cons 1). Originally this was not permitted. On my request this > was permitted more than a year ago. The remark in the guide must be a left > over of old times. The reason I asked for this change is the following: > suppose you hav

Re: [racket] DrRacket and Modules

2011-08-15 Thread Jos Koot
About (define cons 1). Originally this was not permitted. On my request this was permitted more than a year ago. The remark in the guide must be a left over of old times. The reason I asked for this change is the following: suppose you have a module that imports racket and defines a variable some-n