in reply to Released - Acme::Dice
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RFC - Acme::Dice
by Tanktalus (Canon) on Oct 16, 2013 at 17:43 UTC | |
by boftx (Deacon) on Oct 16, 2013 at 23:29 UTC |