> What do you think about these examples?
>
> auto failureCallback = [promiseWrapper]() mutable {
> promiseWrapper.reject(nullptr);
> };
Here I think auto is good because the type is disgusting to write out by hand,
and because the type is clearly visible on the right hand side of the
expression.
> auto iter = m_nameToIdentifierMap.find(name.isolatedCopy());
> if (iter == m_nameToIdentifierMap.end())
> return false;
Here I think auto is good because it likely meets the "disgusting templated
iterator type” clause — even though it’s not in a loop.
Geoff
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev