I'll chime in that I also find it a little clumsily written, but that it
reads to me like variant types are, in practice, little more than different
ways of identifying the same data. Which seems like something you could do
with an additional field, but perhaps you aren't interested in exposing any
implementation details of your type to the user and so this sort of
behaviour is desirable.

That said, I've never seen it in use.

-Dan

On Sun, Dec 14, 2014 at 9:58 PM, Bahman Movaqar <bah...@bahmanm.com> wrote:
>
> On 12/15/2014 08:38 AM, Alex Shinn wrote:
> > This appears to be a chicken-specific extension:
> >
> > http://www.chust.org/fossils/srfi-99/wiki?name=variant+types
> >
> > I'm not sure I understand that description, but appears to be
> > something like a union type?
> >
> >
>
> Thanks for your answer Alex. I didn't understand it either :-)
>
> >
> > On Mon, Dec 15, 2014 at 12:12 PM, Bahman Movaqar <bah...@bahmanm.com
> > <mailto:bah...@bahmanm.com>> wrote:
> >
> >     Reading the docs on SRFI-99 [1], I need some help understanding
> >     what is
> >     a "variant type". Would someone please pass me a relevant link to
> >     read?
> >
>
> --
> Bahman Movaqar
>
> http://BahmanM.com - https://twitter.com/bahman__m
> https://github.com/bahmanm - https://gist.github.com/bahmanm
> PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)
>
>
>
> _______________________________________________
> Chicken-users mailing list
> Chicken-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/chicken-users
>
>
_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to