This is actually horribly put. What I mean is that object identity
(which Scala inherits from the JVM) tends to break referential
transparency because two invocations (in the general case) return
different instances of the same value.

With kind regards
Ben

On 26 Aug., 23:57, Ben Schulz <[email protected]> wrote:
> On 26 Aug., 23:23, Kevin Wright <[email protected]> wrote:
>
> > If `newBuilder` was a pure function, then it really wouldn't
> > matter if `left` and `right` were assigned the same value, or the result of
> > two subsequent evocations of `newBuilder`
>
> That's only true in a referentially transparent language which,
> correct me if I'm wrong, Scala is not.
>
> With kind regards
> Ben

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to