275 reputation
14
bio website
location United Kingdom
age
visits member for 3 years, 9 months
seen Oct 5 at 7:22

Aug
8
comment When would you want two references to the same object?
@gbulmer: I would posit that you can't have a reference to two objects; the reference currentPersona points to one object or the other, but never both. In particular, it might easily be possible that currentPersona is never set to bruce, in which case it's certainly not a reference to two objects. I'd say that, in my example, both batman and currentPersona are references to the same instance, but serve different semantic meaning within the program.
Aug
6
comment When would you want two references to the same object?
Although the Bruce Wayne example as written might not work, I believe the stated intention is correct. Perhaps a closer example might be Persona batman = new Persona("Batman"); Persona bruce = new Persona("Bruce Wayne"); Persona currentPersona = batman; - where you have multiple possible values (or a list of available values) and a reference to the currently-active/selected one.
Jul
9
comment Should I expose IObservable<T> on my interfaces?
It's been cross-posted on StackOverflow already; I'd suggest one or the other should be closed.
Mar
22
awarded  Yearling
Sep
20
awarded  Supporter
Aug
5
comment Are my team's processes out of control?
"Normal" isn't the same as "nothing to worry about."
Aug
5
awarded  Critic
Aug
5
awarded  Nice Answer
Aug
4
awarded  Teacher
Aug
4
answered Are my team's processes out of control?