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

.elems on stringy Ranges is eager #4382

Closed
p6rt opened this issue Jul 6, 2015 · 5 comments
Closed

.elems on stringy Ranges is eager #4382

p6rt opened this issue Jul 6, 2015 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 6, 2015

Migrated from rt.perl.org#125559 (status was 'rejected')

Searchable as RT125559$

@p6rt
Copy link
Author

p6rt commented Jul 6, 2015

From liukan@360.cn

http://irclog.perlgeek.de/perl6/2015-07-06#i_10853280

( '000' .. 'zzzzzzzzz' ).elems.say;

- kan

@p6rt
Copy link
Author

p6rt commented Nov 13, 2017

From @AlexDaniel

Unfortunately there's no easy way to know how many elements are there. If I recall correctly, stringy ranges may loop forever due to normalization and other things.

On 2015-07-06 01​:44​:30, liukan@​360.cn wrote​:

http://irclog.perlgeek.de/perl6/2015-07-06#i_10853280

( '000' .. 'zzzzzzzzz' ).elems.say;

- kan

@p6rt
Copy link
Author

p6rt commented Nov 13, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Dec 14, 2017

From @zoffixznet

On Mon, 13 Nov 2017 07​:31​:44 -0800, alex.jakimenko@​gmail.com wrote​:

Unfortunately there's no easy way to know how many elements are there. If I
recall correctly, stringy ranges may loop forever due to normalization and
other things.

Can't think of anything reasonable either, especially since more-than-one-char string endpoints on Ranges go through sequence operator that does all of that arcane, per-char magic.

Rejecting this.

@p6rt
Copy link
Author

p6rt commented Dec 14, 2017

@zoffixznet - Status changed from 'open' to 'rejected'

@p6rt p6rt closed this as completed Dec 14, 2017
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant