Eigenpoll : D wish list : Keyword Pow Operator 

The term 'pow' could be used to build powers into D. It doesn't need to be a reserved keyword like 'is' and 'in' are.

int v = 2 pow 3; // Here, 'pow' is recognized as an operator

'pow' is not a real keyword, which means an alternate pow function could still be defined:

double pow(double a, double b){ ... }

2 pow 3; // Inbuilt pow operator
pow(2, 3); // User-defined pow function

Report this item for cleanup