Article View: comp.lang.misc
Article #212Re: Types as first-class values?
From: Stephen P Spackman
Date: Tue, 14 Apr 1992 22:46
Date: Tue, 14 Apr 1992 22:46
23 lines
1922 bytes
1922 bytes
I'm a little confused by the notion of type you are looking for: the fact that you specify that you want a membership TEST suggests that you're thinking of a set theory rather than a type theory at all - types are properties of the expressions, not the values, *even when the types are values themselves*. Languages that provide first-class types include Russell and (the spectacularly non-trivial) NuPRL (which doesn't think it's a programming language, but is. We had a language called Brouwer that used the same logic as the source language for a compiler. I;d point you at that but I don't thnk there's a running implementation anymore, or much in the way of literature). Languages that provide first-class sets? I can't think of any; in fact, I'm not sure how you could do that. Unless you restricted yourself to small finite sets a la SETL, most of your primitives would be too expensive (the advantage of the type-theoretic approach is that while compilation may fail to terminate unexpectedly, a successfully compiled programme won't misbehave in that way). ---------------------------------------------------------------------- stephen p spackman Center for Information and Language Studies stephen@estragon.uchicago.edu University of Chicago ----------------------------------------------------------------------
Technical Details
Message-ID:
<STEPHEN.92Apr14174618@estragon.uchicago.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!linac!uchinews!tira!stephenReferences:
<7597@cui.unige.ch>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.misc,comp.lang.functional,comp.object Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!linac!uchinews!tira!stephen From: stephen@estragon.uchicago.edu (Stephen P Spackman) Subject: Re: Types as first-class values? In-Reply-To: oscar@cui.unige.ch's message of 13 Apr 92 16:50:54 GMT Message-ID: <STEPHEN.92Apr14174618@estragon.uchicago.edu> Lines: 23 Sender: news@uchinews.uchicago.edu (News System) Organization: University of Chicago CILS References: <7597@cui.unige.ch> Date: Tue, 14 Apr 1992 22:46:11 GMT