Skip to content

Conversation

db48x
Copy link
Contributor

@db48x db48x commented Mar 18, 2012

This is for issue #1729

@brson
Copy link
Contributor

brson commented Mar 19, 2012

Thanks db48x. After reading the first two commits, the most obvious thing about this is that it changes a bunch of by-value character arguments to by-reference arguments. This doesn't seem like a good trade off to me. Can we accomplish the same things without doing that?

Please also try to keep the history clean. It's difficult to evaluate this with so many merges.

@brson
Copy link
Contributor

brson commented Mar 19, 2012

So after reading through the entire series I saw that a lot of my comments were addressed in later commits. That's great. I think I like where this is going, but it's a little difficult to see the big picture.

It would be really nice if the history were cleaner and there were less diversions and corrections along the way.

This series does take a firm stance on the direction we're going with the iter library, so I would like to hear others' opinions about it. @nikomatsakis @marijnh

@brson
Copy link
Contributor

brson commented Mar 19, 2012

As an aside, I've been working on putting together static extension methods for the most commonly used types, and if we go in this direction it will make some conveniences like [1,2,3].all {...} not be possible as I've currently written them. I guess if we do this we're going to want to bump some of these iterable impls up to the default scope.

@db48x
Copy link
Contributor Author

db48x commented Mar 20, 2012

Yes, I think the by_chars iterator should be the default for strings. Or perhaps by_lines, it's used more often at the moment.

@marijnh
Copy link
Contributor

marijnh commented Mar 20, 2012

Next time, when updating a pull request rebase on top of master, then force-push to your branch, rather than adding merge commits. This has become quite hard to untangle.

@marijnh
Copy link
Contributor

marijnh commented Mar 20, 2012

Okay, I'm very sorry, but I'm giving up. I don't understand the intents behind these patches well enough to merge them sanely, and to make sense of the result. A lot of code, as well as docstrings, has changed since these patches were committed (which arguably, is our fault for letting it sit so long).

@db48x If you have the time, please reorganize your branch to A) apply cleanly on top of head, B) be free of merge commits, C) rebase out tiny fixing commits and churn, so that each commit serves a single, significant purpose.

Also relevant here is that we will soon be getting rid of the ++/&& argument mode distinction, so changing the modes of functions all over the standard libs is not a very good use of your time.

@db48x
Copy link
Contributor Author

db48x commented Mar 20, 2012

Indeed, it seems that there is a disconnect between our development styles. You guys expected a perfectly polished patch series; while I dislike rebasing so what you see is exactly what I did, in the order I did it. I should have mentioned it.

Anyway, I'll see what I can do to fix it up.

@brson
Copy link
Contributor

brson commented Apr 9, 2012

I took another shot at rebasing and squashing this into a patch to apply against master with no luck. Maybe it could be squashed against an earlier rev and then applied to master.

@db48x
Copy link
Contributor Author

db48x commented Apr 9, 2012

That's kind of you, but it may not be necessary. I did it over the weekend but didn't push it because it may no longer make as much sense as before. I need to play with the new extensions interface some first.

@catamorphism
Copy link
Contributor

@brson @db48x Can this be closed? I get the impression most of it has been merged; maybe if there's anything that hasn't been, that could be a new, separate pull req?

@brson
Copy link
Contributor

brson commented Apr 20, 2012

Regretfully, this will require significant rework to merge, so I am going to close it. @db48x I apologize about this and thank you for your contributions and effort.

@brson brson closed this Apr 20, 2012
celinval pushed a commit to celinval/rust-dev that referenced this pull request Jun 4, 2024
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