@olebegemann Do you need to make target and action in TargetActionWrapper optionals?
-
-
- View other replies
-
@Aurelius61 I updated the article and made action non-optional. Thanks for telling me about it. -
@olebegemann The ?'s were annoying me. TargetActionWrapper must have both to be complete. Could the target one go with unowned? - View other replies
-
@Aurelius61 But it would not be a good general solution. You want target to become nil when the object gets deallocated. -
@olebegemann But why would this object continue to exist after the button? Is this from worry about late-arriving events? - View other replies
-
@Aurelius61 Itʼs the other way around. If the button still exists and sends the action but the target has been deallocated, it would crash.
-
-
@olebegemann Nice. The same pattern works well in PyObjC. -
-
@olebegemann Currying /= PFA! - View other replies
-
@codafi_ Are there other common use cases for currying outside PFA? -
@bjhomer No, but that doesn’t make the terms ismorphic. Currying establishes (A /\ B) -> C = (A -> B) -> C. PFA is argument fixing.
-
-
This is Awesome discovery - “
@olebegemann: Instance methods in Swift are just curried type methods: http://oleb.net/blog/2014/07/swift-instance-methods-curried-functions/ …”#Swift -
@olebegemann This makes me happy and I hope it is indicative of a future language feature for true partial function application. -
iOS Dev Weekly から。素晴らしい! “
@olebegemann: Instance methods in Swift are just curried type methods: http://oleb.net/blog/2014/07/swift-instance-methods-curried-functions/ …”
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Ole Begemann
Mark Patterson
Michael Tsai
Kan We Box It?
BJ Homer
Kostiantyn Koval
Lawrence Lomax
Matt Thomas
Nobuyoshi MIYOKAWA