home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!europa.asd.contel.com!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!olivea!inews.Intel.COM!tcad05!bongalon
- From: bongalon@tcad05.intel.com (Ben Bongalon)
- Newsgroups: comp.object
- Subject: Re: Object hidden state and side effects
- Message-ID: <BzMnKp.B4J@inews.Intel.COM>
- Date: 21 Dec 92 20:58:00 GMT
- References: <1992Dec14.175402.1889@crd.ge.com> <1992Dec15.143243.16256@heeg.de> <1992Dec15.224536.13554@crd.ge.com> <BzC05w.2xA@newsflash.concordia.ca> <1992Dec17.001046.27321@crd.ge.com> <knight.724558491@cunews> <BzF7tn.22C@inews.Intel.COM> <knight.724800099@cunews>
- Sender: news@inews.Intel.COM (USENET News System)
- Reply-To: bongalon@tcad05.intel.com (Ben Bongalon)
- Organization: Intel Corporation, Santa Clara, CA USA
- Lines: 46
- Nntp-Posting-Host: tcad05
-
-
- In article <knight.724800099@cunews>, knight@mrco.carleton.ca (Alan
- Knight) writes:
- |> In <BzF7tn.22C@inews.Intel.COM> bongalon@tcad05.intel.com (Ben
- Bongalon) writes:
- |> >In article <knight.724558491@cunews>, knight@mrco.carleton.ca (Alan
- |> >Knight) writes:
- |> >|> However, what does identity mean for a value. If you tell a
- |> >|> mathematician that two imaginary numbers are identical iff they are
- |> >|> equal she will probably ask you what identity means?
- |>
- |> >Here's an example:
- |>
- |> > 1 + 2i == (3-2) + (6/3)i == 1 + 2(i^5)
- |>
- |> > they all evaluate to the same value and can be normalized into
- |> > a unique representation. thus, all 3 expressions are equal
- |> > (identical). how can one get multiple copies?
- |>
- |> This seems like an excellent example of what I was talking about. You
- |> apparently do not disintguish between identity and equality for
- |> complex numbers. If my representation of complex numbers was, for
- |> example, strings, then "1+2i" and "1+2(i^5)" are not in any normal
- |> sense identical, but they are equal.
-
- my question is:
-
- why would you want to consider "i" and "(i^5)" as equal but not
- identical values? Do you consider "1" and "(3-2)" equal but not
- identical also? From a pragmatic point of view, the distinction
- between the simplified and unsimplified forms of the expressions
- seem questionable.
-
-
- |> If I, as a user, type in these two expressions on the keyboard, I
- |> would expect to get separate instances of complex numbers (i.e.
- |> multiple copies) of equal values.
-
- Why? Unless there is a specific need for distinction, I as a user
- would be more interested in the simplified form (ie, the semantic
- definition) of an expression rather. I don't want to distinguish
- the _infinite_ number of ways that a value can be represented in.
-
-
- Ben Bongalon
- Intel Corporation
-