🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #3644

Re: Optional static typing limits

#3644
From: Hans Boehm
Date: Tue, 23 Apr 1991 22:51
26 lines
1377 bytes
gudeman@cs.arizona.edu (David Gudeman) writes:

>In article  <1991Apr22.153149.8082@newcastle.ac.uk> Chris Holt writes:
>]What would be nice would be something of the form
>]
>]Sort S <=
>]    where
>]    S : sequence of D
>]    D : domain
>]    <= : partial_order (D x D -> boolean)
>]        where
>]        partial_order : transitive & reflexive & antisymmetric

>I know that is the standard solution, but I wonder if a better
>solution wouldn't be a function $ord : D -> Int$ that maps domain
>objects into arbitrary integers with the property that if $d1 < d2$
>by the partial order, then $ord(d1) < ord(d2)$.  ($d1 < d2$ means that
>$d1 <= d2$ and $d1 =/= d2$.)

There is no such function mapping character strings to integers.  Note
that "a" < "aa" < "aaa" < ...infinitely many strings... < "b".  No subset
of the integers has this property.  See any set theory book for a
discussion of transfinite ordinals.

Hans
boehm@xerox.com
Technical Details
Message-ID: <boehm.672447105@siria>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!parc!boehm
References: <2325@optima.cs.arizona.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!parc!boehm
From: boehm@parc.xerox.com (Hans Boehm)
Newsgroups: comp.lang.misc
Subject: Re: Optional static typing limits
Message-ID: <boehm.672447105@siria>
Date: 23 Apr 91 22:51:45 GMT
References: <2325@optima.cs.arizona.edu>
Sender: news@parc.xerox.com
Organization: Xerox PARC
Lines: 26