Re: [racket] "private" modules to make an opaque struct type

2012-02-28 Thread Ryan Culpepper
On 02/28/2012 10:22 PM, David T. Pierson wrote: Hi all, Many racket collections define some modules in a subdirectory named "private". Presumably these modules are for definitions that are used by other modules in the same collection but are not meant to be used from outside the collection. As

[racket] "private" modules to make an opaque struct type

2012-02-28 Thread David T. Pierson
Hi all, Many racket collections define some modules in a subdirectory named "private". Presumably these modules are for definitions that are used by other modules in the same collection but are not meant to be used from outside the collection. As far as I can tell, this is just a convention and

Re: [racket] Scribblings @defproc for typed/racket

2012-02-28 Thread Sam Tobin-Hochstadt
For most functions, I don't think it should be documented differently. (All ...) is a good point, but it's something we should fix for functions with plain old contracts as well. On Tue, Feb 28, 2012 at 3:16 PM, Jay McCarthy wrote: > Sam, > > Is there a reason you think there should not be Scrib

Re: [racket] Cool things in Whalesong: RaphaelJS!

2012-02-28 Thread Neil Van Dyke
Danny Yoo wrote at 02/28/2012 06:34 PM: Just in case you haven't seen it, first see the program source: http://hashcollision.org/tmp/raphael-demo/raphael-demo.rkt Now look at the running program: http://hashcollision.org/tmp/raphael-demo/raphael-demo.html Danny, this is very e

Re: [racket] Cool things in Whalesong: RaphaelJS!

2012-02-28 Thread Danny Yoo
On Tue, Feb 28, 2012 at 12:56 AM, Danny Yoo wrote: > Hi everyone, > > The following is work that Jens Axel Soegaard has done: he's written > bindings for RaphaelJS in Whalesong!  The following is very, very > tentative, but it's so cool I can't bear to stay quiet about it.  :) Jens made the demo

Re: [racket] Good book on OOP design principles

2012-02-28 Thread Raoul Duke
On Tue, Feb 28, 2012 at 2:12 PM, David Van Horn wrote: > How to Design Classes > http://www.ccs.neu.edu/home/matthias/htdc.html > It's written for Java, but easily translates to Racket's class system. (here i am being a broken record) when i skimmed it, it appeared to be in the "start with the da

[racket] Good book on OOP design principles

2012-02-28 Thread Harry Spier
Dear list members, Can someone recommend a good book on OOP design principles. Ideally something that though the examples weren't written using Rackets Classes and Objects, I could still (relatively easily) translate into Racket, and go through the examples that way. Thanks, Harry Spier

Re: [racket] Good book on OOP design principles

2012-02-28 Thread David Van Horn
On 2/28/12 5:10 PM, Harry Spier wrote: Dear list members, Can someone recommend a good book on OOP design principles. Ideally something that though the examples weren't written using Rackets Classes and Objects, I could still (relatively easily) translate into Racket, and go through the example

Re: [racket] Splitting Racket source code by scope?

2012-02-28 Thread Matthias Felleisen
The key distinction is setting parameters at compile time (which is when include happens) and run time (which is what Rüdiger did). I have sent along an explanation of how units may solve his problem in a better way. -- Matthias On Feb 28, 2012, at 3:35 PM, Danny Yoo wrote: > On Tue, Feb 28,

Re: [racket] x-expressions

2012-02-28 Thread Jay McCarthy
Actually numbers are allowed, but not all numbers. If you look at http://docs.racket-lang.org/xml/index.html?q=xexpression#(def._((lib._xml/main..rkt)._valid-char~3f)) It tells you which numbers are allowed, and 2 is not. I'll change the error message to say "valid numeric entity" rather than "n

Re: [racket] Splitting Racket source code by scope?

2012-02-28 Thread Danny Yoo
On Tue, Feb 28, 2012 at 2:31 AM, Rüdiger Asche wrote: > yes, but the docs for include also say that "If the source is not a complete > path string, then path-spec is resolved relative to > (current-load-relative-directory) if it is not #f, or relative to > (current-directory) otherwise." Is that a

Re: [racket] Scribblings @defproc for typed/racket

2012-02-28 Thread Jay McCarthy
Sam, Is there a reason you think there should not be Scribble forms for typed code/APIs? I think it would be good to communicate its typed-ness and have support for things like For Alls, (How are you going to communicate for-all-ness with pretend contracts?) Jay On 2/27/12, Ray Racine wrote: >

Re: [racket] x-expressions

2012-02-28 Thread Jens Axel Søgaard
2012/2/28 Johannes Brauer > Hi! > > In DrRacket version 5.02 this x-expression > > (validate-xexpr '(add x 2)) > > is legal. In version 5.2 I get the error message > > Expected a string, symbol, number, comment, processing instruction, or > list, given 2 > > Can anyone explain this to me? > Acco

[racket] x-expressions

2012-02-28 Thread Johannes Brauer
Hi! In DrRacket version 5.02 this x-expression (validate-xexpr '(add x 2)) is legal. In version 5.2 I get the error message Expected a string, symbol, number, comment, processing instruction, or list, given 2 Can anyone explain this to me? Johannes Staatl