[plt-scheme] optional parameters?

From: Robby Findler (robby at cs.uchicago.edu)
Date: Sat Sep 15 09:43:24 EDT 2007

If you want to read more of the higlights of (lib "class.ss") you
might want to check this out before reading the docs below:

  http://pre.plt-scheme.org/docs/html/guide/classes.html

and maybe this one:

  http://people.cs.uchicago.edu/~robby/pubs/papers/aplas2006-fff.pdf

On 9/15/07, Jens Axel Søgaard <jensaxel at soegaard.net> wrote:
> Hi Troels,
>
> > I'm using prometheus (
> > http://planet.plt-scheme.org/package-source/daedalus/prometheus.plt/1/0/doc.txt
> > )for creating objects, and it's working fine. However, I have a
> > method, which I would like to give an optional argument. How can I
> > make an argument optional, and how do I specify a default value for
> > when it isn't supplied? Is it even possible, or should I use a
> > different strategy?
>
> It seems you got no answers on this one. Most likely because
> very few people use this object system. (This is hard to
> know as a newcomer)
>
> There are two object systems builtin in PLT Scheme. The
> first one (lib "class.ss") is Java-like with various
> extension (among other inners from Beta).
>
>     http://docs.plt-scheme.org/mzlib/mzlib-Z-H-6.html#node_chap_6
>
> The other is Swindle, which is similar to CLOS (from Common Lisp).
>
>
> If you want answer to the Prometheus question, the best
> bet is to mail the author Jorgen Schaefer directly.
> If you have questions on (lib "class.ss") or Swindle
> there'll be plenty of help here.
>
> --
> Jens Axel Søgaard
>
>
>
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>

Posted on the users mailing list.