iridia/Finch — comment on commit dea9c57f485dbf3293c7b668a76b3581a5bd818c
File:  line 0
By monoceroi:

I think [this](http://www.mikeash.com/pyblog/friday-qa-2011-02-18-compound-literals.html) would do:

error = error ? error : &(NSError *){ nil };

On Nov 13, 2011, at 3:02 AM, Tomáš Znamenáček wrote:

> Exactly. This was one of my first encounters with Cocoa `NSError`-type error handling and I hated the `if (error)` repetition and the overall verbosity, so I tried to write a way around it. I don’t really feel I succeeded, I guess it’s better to keep the code verbose and clear rather than succint and obscure (at least in this case).
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/iridia/Finch/commit/dea9c57f485dbf3293c7b668a76b3581a5bd818c#commitcomment-713274