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

Discourage MATLAB users from calling collect #12103

Merged
merged 1 commit into from
Jul 29, 2015

Conversation

jdlangs
Copy link
Contributor

@jdlangs jdlangs commented Jul 10, 2015

When I first started with Julia, using iterable objects instead of arrays seemed a bit confusing and magical so I would frequently just convert them into full arrays. I thought it would be nice to provide some explicit encouragement to not do that for future new adopters.

@johnmyleswhite
Copy link
Member

Seems reasonable to me.

@malmaud
Copy link
Contributor

malmaud commented Jul 10, 2015

I wonder if it's worth making clear that in most situations there is no performance loss from dealing with iterators, unlike in Python where you do often want to collect if you are more concerned with CPU usage than memory.

JeffBezanson added a commit that referenced this pull request Jul 29, 2015
Discourage MATLAB users from calling collect
@JeffBezanson JeffBezanson merged commit 0523f92 into JuliaLang:master Jul 29, 2015
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.

4 participants