Where is the most definitive list of known Perl6 (not Parrot) builtin types?
The following have been specified/implied by the A/Es:
scalar
bit (== bool? == boolean?)
num
int
str
bigint
bignum
bitarray (maybe)
ref
rx (or regex,rule?)
code
classname
Object
array
hash
But also stated is that perl6 will have enough type information to easily interact with other languages, which implies to me that types must exist which, at minimum, mirror the C types (maybe by the same names, maybe not, maybe both)...
int (char, long, short, whatever)
int8
int16
int32
int64
uint
uint8
uint16
uint32
uint64
float
double (long double, etc?)
cstr (null-terminated, non-Unicode-aware?)
.... which wouldn't be used in typical programming, but would be needed to define signatures for things pulled in from other libraries?
And perhaps
bin
oct
hex
should be builtin types subclassed from uint, but with overloaded (de)serialization such that:
my int $i = 0x0a; print $i; # prints '10'
my int $i = '0x0a'; print $i; # prints '0'
my hex $i = 0x0a; print $i; # prints '0a'
my hex $i = '0x0a'; print $i; # prints '0a'
my hex $i = '0a'; print $i; # prints '0a'
.... for helping with the variety of shell tools that Perl is so good at producing.
What's the closest to a definitive list, so far?
MikeL
- Re: Perl6 Builtin Types? Michael Lazzaro
- Re: Perl6 Builtin Types? Larry Wall
- Re: Perl6 Builtin Types? Nicholas Clark
- RE: Perl6 Builtin Types? Brent Dax