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

Fix join((), ", ") #27062

Merged
merged 2 commits into from
May 14, 2018
Merged

Fix join((), ", ") #27062

merged 2 commits into from
May 14, 2018

Conversation

mbauman
Copy link
Sponsor Member

@mbauman mbauman commented May 10, 2018

This is simply a hack to avoid working with an Iterators.Stateful(()), which has problems when trying to stably infer the return type of the error function next((), _). Punts #26871 to just using Stateful itself.

Note that join((), …) frequently pops up when displaying sizes or axes of a zero-dimensional array.

This is a simply hack to avoid working with an `Iterators.Stateful(())`, which has problems when trying to stably infer the return type of the error function `next((), _)`. Punts #26871 to just using `Stateful` itself.
Copy link
Member

@Keno Keno left a comment

Choose a reason for hiding this comment

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

It shouldn't be too hard to fix Stateful either, but it's already fixed in the new iteration protocol, so probably not worth the time.

@JeffBezanson JeffBezanson merged commit ca764ea into master May 14, 2018
@JeffBezanson JeffBezanson deleted the mb/join-Tuple{} branch May 14, 2018 21:11
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.

3 participants