| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: more closed-world chatter
"Marshall" <marshall.spight_at_gmail.com> wrote in message
news:1178396255.293864.297010_at_e65g2000hsc.googlegroups.com...
> On May 5, 12:40 pm, "David Cressey" <cresse..._at_verizon.net> wrote:
> > "Marshall" <marshall.spi..._at_gmail.com> wrote in message
> > > On May 5, 8:50 am, Jon Heggland <jon.heggl..._at_idi.ntnu.no> wrote:
> >
> > > > > when it comes to the advantage of sub-typing in dealing with
> > > > > my question.
> >
> > > > I don't know about "advantage"; I just don't see how you can avoid
it.
> >
> > > It's easy to avoid: just don't put subtying in the language design.
> >
> > > Much of the talk in language design in the last ten years or more
> > > has focused on various mechanisms for subtyping, but it's an
> > > entirely optional language feature. That's easy to forget when
> > > it's all anyone's talking about, but it is possible to just leave it
> > > out.
> > > It's also possible to leave a static type system out entirely.
> >
> > You've lost me here. As Bob pointed out a few days ago,
> > all types can be considered subtypes of the universal supertype.
> > Doesn't that mean that all typing is, in reality, subtyping?
> >
> > If so, how can you implement typing without
> > implicitly implementing subtyping?
>
>
>
> Now, we can certainly speak of the set of all ints
> and strings, but we can't express anything about
> that set *within* this language.
>
What's the difference, in this context, between a type and a domain?
The reason I ask is because I once had occasion to every occurence, in the
code,
of comparisons like "WHERE ... A.X = B.Y" and the two items being
compared were based on different domains. I was able to use Rdb itself,
and some fancy features of a text processing utility, to get the answer
automatically. No big deal.
End of digression.
You are right. This could be evaluated at compile time. Of course, provided that the metadata is available at compile time, which is definitely a good idea anyway.
It might be desirable to allow the query programmer to override the restriction, if desired. Received on Sat May 05 2007 - 16:23:11 CDT
![]() |
![]() |