Is it crazy?
((void (^)())@[ | |
^{[self action2];}, | |
^{[self action1];} ][value.boolValue])(); | |
//vs | |
if (value.booldValue) { | |
[self action1]; | |
} | |
else { | |
[self action2]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment