Should we mark all the find methods with @discardableResult? #355
josh-arnold-1
started this conversation in
General
Replies: 1 comment
-
Agreed. But duplicate of #349 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A lot of the time I find myself wanting to try to find a view, just to assert on its existence, so I end up writing:
At the moment, to avoid a warning, we need to specify a placeholder here
_
.Would we be against marking the find methods with
@discardableResult
so we can usefind
almost as an assertion in itself?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions