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

split() wants something unboxable to a native int but not quite (split ‘b’, ‘aba’, NaN) #5278

Closed
p6rt opened this issue Apr 30, 2016 · 6 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Apr 30, 2016

Migrated from rt.perl.org#128034 (status was 'resolved')

Searchable as RT128034$

@p6rt
Copy link
Author

p6rt commented Apr 30, 2016

From @AlexDaniel

Code​:
say split �b�, �aba�, NaN

Result​:
This type cannot unbox to a native integer
  in block <unit> at -e line 1

OK, that error means that we cannot use Inf and -Inf too, right?

Code​:
say split �b�, �aba�, +�
say split �b�, �aba�, -�

Result​:
(a a)
()

� But we can!

I think that the error message is LTA because it leads the user to think that anything that is not unboxable to a native int is not OK, while you can actually use Inf and -Inf.

@p6rt
Copy link
Author

p6rt commented Jun 20, 2016

From @zoffixznet

PR to fix this​: rakudo/rakudo#796

@p6rt
Copy link
Author

p6rt commented Jun 20, 2016

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

@p6rt
Copy link
Author

p6rt commented Jun 21, 2016

From @zoffixznet

Fixed in rakudo/rakudo@57f8f8f0fa

This ticket can be closed.

@p6rt
Copy link
Author

p6rt commented Jun 21, 2016

From @zoffixznet

Test added in Raku/roast@c3f40c4b36

@p6rt p6rt closed this as completed Jun 21, 2016
@p6rt
Copy link
Author

p6rt commented Jun 21, 2016

@AlexDaniel - Status changed from 'open' to 'resolved'

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant