News for hackers. Stuff that matters.
Re:How we used Category Theory to solve a problem in Java by tel on Wednesday January 13, 2016 @01:26PM (#10896349)
That just seems broken?

If `f` is Function<T, S> then given `T src`, like we have, then f.apply(src) has type S. But Extension.this.apply is applied to values of S even though T is the thing qualified as an Extension.

Actually, I'm just entirely not sure I know how to read Java type signatures.

Re:How we used Category Theory to solve a problem in Java by pron on Wednesday January 13, 2016 @01:44PM (#10896473)
The part you're missing is the `this` in `Extension.this`. This method is a member of Extension<T>, and it returns an Extension<S>. So `this` (of type Extension<T>) is transformed by the method to Extension<S>.
Re:How we used Category Theory to solve a problem in Java by tel on Wednesday January 13, 2016 @02:27PM (#10896793)
Ah, thanks!