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

S03: 42 x *, 42 xx *, 42 x Inf, 42 xx Inf #95

Open
AlexDaniel opened this issue Jul 16, 2015 · 0 comments
Open

S03: 42 x *, 42 xx *, 42 x Inf, 42 xx Inf #95

AlexDaniel opened this issue Jul 16, 2015 · 0 comments

Comments

@AlexDaniel
Copy link
Member

From S03:

$string x $count

The count may not be * because Perl 6 does not support infinite strings. (At least, not yet...)

However, the implementation is different:

m: say 'test' x *;
rakudo-moar ee36da: OUTPUT«WhateverCode.new␤»

m: say ('test' x *)(5)
rakudo-moar ee36da: OUTPUT«testtesttesttesttest␤»

And it seems like this behavior makes more sense. In other words, xx Inf is infinitite list, x Inf is an error, x * and xx * – currying.

Related rakudobug: https://rt.perl.org/Public/Bug/Display.html?id=125627

IRC log: http://irclog.perlgeek.de/perl6/2015-07-16#i_10908664

According to the IRC log people seem to like that.

@AlexDaniel AlexDaniel changed the title 42 x *, 42 xx *, 42 x Inf, 42 xx Inf S03: 42 x *, 42 xx *, 42 x Inf, 42 xx Inf Jul 16, 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

No branches or pull requests

1 participant