Skip to main content
10 events
when toggle format what by license comment
Jul 28, 2011 at 8:48 comment added user7043 @dan_waterworth: Only if we read the "same" in "referentially transparent" as object identity. If the fact the underlying attribute is different makes it a call with different arguments (which is in line with most definitions of equality). This is ignoring another thread calling a setter and finishing it between the call to the getter and the getter finishing, but in that case you got more serious problems anyway.
Jul 28, 2011 at 7:53 comment added dan_waterworth @delnan, only if the attribute that it is reading is immutable.
Jul 28, 2011 at 6:19 answer added Tyler timeline score: 11
Jul 27, 2011 at 20:37 answer added Casey Hawthorne timeline score: -1
Jul 27, 2011 at 19:59 vote accept ThaDon
Jul 27, 2011 at 18:34 history tweeted twitter.com/#!/StackProgrammer/status/96287482445967360
Jul 27, 2011 at 18:22 answer added Daniel C. Sobral timeline score: 8
Jul 27, 2011 at 18:21 comment added user7043 Getters and setters have the object as parameter - even though it's usually implicit - so getters are referentially transparent.
Jul 27, 2011 at 18:12 history edited ThaDon CC BY-SA 3.0
added 4 characters in body
Jul 27, 2011 at 18:06 history asked ThaDon CC BY-SA 3.0