Omit needless words. Every word in a name should convey salient information at the use site.
More words may be needed to clarify intent or disambiguate meaning, but those that are redundant with information the reader already possesses should be omitted. In particular, omit words that merely repeat type information.
Therefore, I propose that we rename GREYRemoteClassInApp(classVal:) to GREYRemoteClassInApp(_:). This would also make the function consistent with the EarlGrey.remoteClassInApp(_:file:line:)method.
Rename
GREYRemoteClassInApp(classVal:)
toGREYRemoteClassInApp(_:)
.GREYRemoteClassInApp
accepts a parameter namedclassVal
that represents the target class. The current usage looks like the following:The
classVal
parameter name seems unnecessary given that the following alternative seems to convey the same amount of information:The Swift API Design Guidelines say the following:
Therefore, I propose that we rename
GREYRemoteClassInApp(classVal:)
toGREYRemoteClassInApp(_:)
. This would also make the function consistent with theEarlGrey.remoteClassInApp(_:file:line:)
method.