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

instantiated Numeric hangs on numeric ops #4559

Open
p6rt opened this issue Sep 19, 2015 · 1 comment
Open

instantiated Numeric hangs on numeric ops #4559

p6rt opened this issue Sep 19, 2015 · 1 comment
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Sep 19, 2015

Migrated from rt.perl.org#126112 (status was 'new')

Searchable as RT126112$

@p6rt
Copy link
Author

p6rt commented Sep 19, 2015

From zefram@fysh.org

This is less than awesome​:

$ ./perl6 -e 'my $a = Numeric.new; say $a + 0'
[hangs]
^C

With the Numeric class being as abstract as it is, it doesn't make a whole
lot of sense to be able to instantiate it directly. But the language
seems to like making everything being instantiable. Given that it is
instantiable, having a Numeric object that hangs on addition is less
than awesome. I guess there's some method delegation going on that
loops back to itself, because nothing has said concretely how to add a
Numeric to an Int. It would be better for the lack of specific method
to be detected and signal an error.

-zefram

@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