Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method names do not follow Objective C styleguide #8

Open
bryanoltman opened this issue Jan 13, 2020 · 0 comments
Open

Method names do not follow Objective C styleguide #8

bryanoltman opened this issue Jan 13, 2020 · 0 comments

Comments

@bryanoltman
Copy link

Conventionally, Objective C methods which return a value by operating on a parameter adhere to the [ReturnType]with[ParamType] or [ReturnType]by[Operation][ParamType] format. Examples of this in Foundation include NSNumber's numberWithInteger:, NSString's stringByApplyingTransform:reverse:, and NSArray's arrayWithObject:.

fbl_map, fbl_filter, etc. do not follow these conventions. A more idiomatic name for the map method might be fbl_arrayByMappingObjects: or fbl_arrayByMappingObjectsFromArray.

See also: Google Objective-C Style Guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant