Function types as classes

Patrick Wright pdoubleya at gmail.com
Thu Dec 10 14:39:30 PST 2009


Hi

Should I assume in reading the Staw Man Proposal (SMP) that when I
read "function type" I should understand that to be some Class, and we
assign instances of that function type? If so:

#int() fortyTwo = #()(42);
#int() fortyTwoTwo = #()(42);

assert !(fortyTwo == fortyTwoTwo)

but what about
assert (fortyTwo.equals(fortyTwoTwo))

which maybe is a way of asking, is any #int() equal to any other
#int()? What about hashCode()?


Thanks (for your patience!)
Patrick


More information about the lambda-dev mailing list