[racket] Exploratory programming?

From: Eli Barzilay (eli at barzilay.org)
Date: Wed Dec 1 17:05:51 EST 2010

Two hours ago, richard.lawrence at berkeley.edu wrote:
> 
> > On Dec 1, 2010, at 1:20 AM, Eli Barzilay wrote:
> >>
> >> This is because you didn't document it.
> 
> Yes, right.  This was perhaps not the best illustration.  I don't
> think it would be terribly useful to read documentation (per se)
> about functions defined at the REPL.  I meant to illustrate that
> calling help on a procedure object in Python gives you a certain
> amount of information (regardless of whether the author has
> documented it or not), including the module it is defined in

See the rest of my message -- the information about the module is
something that you can get in a number of ways, most notably in
DrRacket.


> and its required and optional arguments.  Is there a way to get this
> kind of information in Racket at the REPL, regardless of whether or
> not the author has been scrupulous in documenting her work?

The arity information is available via `procedure-arity', but argument
names are not kept.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the users mailing list.