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

[Docs] views::filter and views::ints usage examples #1566

Merged
merged 1 commit into from
Dec 6, 2020

Conversation

Dig-Doug
Copy link
Contributor

@Dig-Doug Dig-Doug commented Sep 8, 2020

Similar to #1536.

///
/// <pre><b>output_range</b></pre>
/// - Range of monotonically increasing ints
/// - When an `upper_bound` is not specified, the range is quasi-infinite
Copy link
Owner

Choose a reason for hiding this comment

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

Is "quasi-infinite" defined anywhere? What does it mean? What concepts does the resulting range satisfy?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I based this off of the existing docs "Generate a range of monotonically increasing ints. When used without arguments, it generates the quasi-infinite range". If I'm reading the code correctly, it looks like the iterator will eventually overflow.

Not sure what concepts it satisfies or how to find out. Can you point me to that info?

Copy link
Owner

Choose a reason for hiding this comment

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

All "infinite" ranges have difference types that will eventually overflow. It's a problem with the ranges design I was never able to properly solve.

@ericniebler ericniebler merged commit fa00307 into ericniebler:master Dec 6, 2020
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

2 participants