Of what types are +-Inf and NaN #27

Open
moritz opened this Issue Dec 30, 2012 · 2 comments

Projects

None yet

3 participants

@moritz
Perl 6 member

So far I have assumed that Inf, -Infand NaN are of type Num. Hoever S02 says in the section on Immutable Types:

Int         Perl integer (allows Inf/NaN, arbitrary precision, etc.)

Which opens up the question: what exactly is the type of Inf etc.? If it's Num, an Int can't hold it. If it's an Int, a Num can't hold it. If it's a separate type, that should be specced explicitly.

@masak
Perl 6 member

I just found this issue and was surprised it didn't link to http://irclog.perlgeek.de/perl6/2014-08-20#i_9217322

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment