Re: [racket] irritating output format (shared ((-3- (list 3))) ...

2011-10-22 Thread Ryan Culpepper
On 10/19/2011 01:31 PM, Sancho wrote: I try the following piece of code: (define (insertions e list) (if (null? list) (cons (cons e list) list) (cons (cons e list) (map (lambda (tail) (cons (car list) tail)) (insertions e (cdr list)) (insertio

[racket] irritating output format (shared ((-3- (list 3))) ...

2011-10-22 Thread Sancho
I try the following piece of code: (define (insertions e list) (if (null? list) (cons (cons e list) list) (cons (cons e list) (map (lambda (tail) (cons (car list) tail)) (insertions e (cdr list)) (insertions 1 (list 2 3)) and the output I get is:

Re: [racket] Escaping things in templates?

2011-10-22 Thread Jay McCarthy
web-server/template and Scribble produce strings, that's why you create a response by plopping in the string from include-template. The Web Server has no idea what kind of string you making, so it imposes no special XML rules. The template-less version your servlet does exactly what you seem to wa

[racket] Escaping things in templates?

2011-10-22 Thread Michael W
Hello! Thanks for making racket! It's the coolest. The web server template documentation: http://docs.racket-lang.org/web-server/templates.html has several great examples of templates, but it doesn't mention whether strings included in templates are entity-escaped XML or not. More seriously, sear

Re: [racket] impersonators/chaperones for lists

2011-10-22 Thread Sam Tobin-Hochstadt
On Sat, Oct 22, 2011 at 5:50 PM, Shriram Krishnamurthi wrote: > Thanks to you and Sam -- I had wondered if the run-time system wasn't > partly driving this, and certainly chaperones on immutable data don't > make as much sense. They do make sense, and turn out to be important for things like imm

Re: [racket] impersonators/chaperones for lists

2011-10-22 Thread Shriram Krishnamurthi
Thanks to you and Sam -- I had wondered if the run-time system wasn't partly driving this, and certainly chaperones on immutable data don't make as much sense. But I don't see them on mutable lists either _ For list-related administrative tasks

Re: [racket] impersonators/chaperones for lists

2011-10-22 Thread Sam Tobin-Hochstadt
On Sat, Oct 22, 2011 at 4:10 PM, Shriram Krishnamurthi wrote: > I'm missing why there are impersonators and chaperones for various > datatypes but not for lists.  There's surely a good reason why, but I > am having trouble reconstructing what it might be.  Anyone? First, chaperones aren't necess

Re: [racket] impersonators/chaperones for lists

2011-10-22 Thread Vincent St-Amour
At Sat, 22 Oct 2011 22:10:27 +0200, Shriram Krishnamurthi wrote: > I'm missing why there are impersonators and chaperones for various > datatypes but not for lists. There's surely a good reason why, but I > am having trouble reconstructing what it might be. Anyone? I believe it's because lists a

Re: [racket] [typed racket] type case

2011-10-22 Thread Sam Tobin-Hochstadt
On Sat, Oct 22, 2011 at 2:20 PM, Eric Tanter wrote: > On Oct 21, 2011, at 1:55 PM, Sam Tobin-Hochstadt wrote: >> On Fri, Oct 21, 2011 at 12:44 PM, Eric Tanter wrote: >>> In that sense, union types are a particularly good example. They are >>> necessary to support the kind of patterns found in pr

[racket] impersonators/chaperones for lists

2011-10-22 Thread Shriram Krishnamurthi
I'm missing why there are impersonators and chaperones for various datatypes but not for lists. There's surely a good reason why, but I am having trouble reconstructing what it might be. Anyone? Shriram _ For list-related administrative tasks:

Re: [racket] [typed racket] type case

2011-10-22 Thread Eric Tanter
On Oct 21, 2011, at 1:55 PM, Sam Tobin-Hochstadt wrote: > On Fri, Oct 21, 2011 at 12:44 PM, Eric Tanter wrote: >> In that sense, union types are a particularly good example. They are >> necessary to support the kind of patterns found in previously-untyped code. >> But if I'm writing typed code,

Re: [racket] Scribble to GoogleCode Wiki

2011-10-22 Thread José Lopes
Thank you. On 22-10-2011 04:04, Matthew Flatt wrote: At Fri, 21 Oct 2011 23:31:56 +0100, José Lopes wrote: I am trying to generate GoogleCode's Wiki pages using a Scribble document as source. Which functions provided by the Scribble module I can use to write a program that reads a Scribble docu