If I were actually going to use this, for RPGs or whatever, I’d prefer a “magical” overloaded interface. Not that I’ve had time for RPGs since I wrote dice rolling code in BASIC on a TRaSh 80… anyway, maybe more like–
print four(); my $four = four(); say $four + $four; say six() x 3;
Shouldn’t be too hard to have all the die functions being object constructors with various overloading.
In reply to Re: RFC - Acme::Dice
by Your Mother
in thread Released - Acme::Dice
by boftx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |