It seems to work without spaces if you choose a symbol that is not
letter-like.
# đČU+1F3B2 Game Die
sub infix:<đČ> ( Int $num, Int $size ) { [+] (1..$size).roll($num) };
sub prefix:<đČ> ( Int $size ) { 1đČ$size }
say đČ10;
say 4đČ6;
# â U+26CF Pick
sub infix:<â> ( Int $num, Int $size ) { [+] (1..$size
I think there are a couple answers. The simple one is yes -- embrace the
whitespace. Maybe wrap them in ()', like (2 d 6).
Another line of ideas is wrapping things with some other operators. Maybe a
special quoting operator or a converter.
[[2d6]] # double for dice!
"2d6":dice # postfix. This