Re: Object-oriented thinking in SQL context?

From: Marshall <>
Date: Thu, 18 Jun 2009 06:08:58 -0700 (PDT)
Message-ID: <>

On Jun 17, 9:45 pm, Bob Badour <> wrote:
> Marshall wrote:
> >>Does Java have no arrays or associative arrays?
> > Java has primitive arrays. They are sufficiently lame that
> > I don't use them much. They also aren't all that pretty
> > as far as the type system goes; Java array types are
> > covariant but of course array-element-assignment is
> > contravariant, so you can get (runtime) errors.
> > Java has a bajillion collection classes, and as such
> > things go, they're actually pretty good. (Incl. dictionaries.)
> > They are all class based. Java really, really wants
> > you to use classes. (The anthropomorphism there
> > is all in my phrasing; what I mean is that the language
> > design makes the use of classes easy and doesn't
> > provide much else to use.)
> One could use a dictionary to implement name-based plain composition,
> though. Is that correct?

Yes. There's no special syntax for them, though; just the usual OO method-call syntax.

I've done that sort of thing on occasion, when the names are not known ahead of time.

Marshall Received on Thu Jun 18 2009 - 15:08:58 CEST

Original text of this message