Re: Object identity
- From: "Gabriel Claramunt" <gabclar@xxxxxxxxxxxxxxx>
- Date: Mon, 26 Jun 2006 06:16:31 GMT
Got it, I swaped the codomain and the domain, my mistake...
Your example shows that the interpretation is not 1-1, rather than it
not being a function! You seem to have swapped domain and codomain!
I have no problem at all with an interpretation not being 1-1. IMO it
is implicit in the nature of object identity (as distinct from value
semantics). However you will find lots of OO programmers who think
your code above is evil.
I will not say evil, I'll say extremely dangerous... in the same way,
nothing impedes you put 2 rows with the exact same data in a relational
table, but you will have a mess with the queries... is extremely dangerous
Cheers,
David Barrett-Lennard
.
- Follow-Ups:
- Re: Object identity
- From: Dmitry A. Kazakov
- Re: Object identity
- References:
- Object identity
- From: David Barrett-Lennard
- Re: Object identity
- From: Gabriel Claramunt
- Re: Object identity
- From: David Barrett-Lennard
- Object identity
- Prev by Date: Re: Object identity
- Next by Date: Re: Object identity
- Previous by thread: Re: Object identity
- Next by thread: Re: Object identity
- Index(es):