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

Additional detail regarding the use of map over collect #120

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bob-nomann
Copy link

Added additional detail to style guide regarding the use of map and collect.
Closes #101.

@@ -1390,7 +1390,7 @@ In either case:
## Collections

* <a name="map-over-collect"></a>Prefer `map` over
`collect`.<sup>[[link](#map-over-collect)]</sup>
`collect` as it's a more recognized convention among programmers.<sup>[[link](#map-over-collect)]</sup>
Copy link
Contributor

@akuhn akuhn May 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we add the same comment for reduce then?

Also, it seems the consistency argument from the issue conversation is not mentioned here. Maybe we can say something like ... for consistency, and familiarity of terminology (eventhough the latter breaks my heart as a Smalltalker, sigh).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we should use reduce over inject for the same reason imo.

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

Successfully merging this pull request may close these issues.

None yet

4 participants