> On Apr 28, 2017, at 8:10 AM, Geoffrey Garen <gga...@apple.com> wrote:
> 
> Tests for numeric values where 0 indicates falsiness or emptiness should also 
> use if (x) / if (!x).
> 
>    If (!collection.size())
>        return;


I think if (collection.isEmpty()) looks even better :)

--
 Chris Dumez

_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to