On Fri, Jun 27, 2008 at 10:43 PM, Chris Double <[EMAIL PROTECTED]>
wrote:
> On Sat, Jun 28, 2008 at 3:21 PM, Slava Pestov <[EMAIL PROTECTED]>
> wrote:
> > TUPLE: color red|integer green|integer blue|integer ;
>
> So '|' would no longer be a valid symbol in word names? Or just in tuple
> names?
Just in tuple _slot_ names.
>
>
> > 1) Support a per-type notion of 'default value'. This would be roughly as
> > follows:
>
> How would this work with union types? For example I want a type that
> is either an integer or a false value. What would be the default value
> then? Or are union types not allowed?
Depending on how I implement it, it would either be 0, or f.
>
>
> >
> > Each slot specifier would either be a string, a two element array (name,
> > default value) or a three element array (name, class, default value).
>
> How about the ordering for the three element case be (name, default,
> class). This way the ordering is the same as the two value version.
Makes sense.
>
>
> > But we'd encourage this:
> >
> > TUPLE: color "red" "green" "blue" ;
>
> Why would you encourage that vs the version without quotes? The
> version without quotes is nicer to read and easier to type.
I guess.
Slava
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk