Subject: | shorter code (forgetting $self) |
I'm doing this right now to write less code:
local *i = \$self->elements->[$i];
local *j = \$self->elements->[$j];
local *ij = \$self->operation_table->[$i]->[$j];
${*ij} = ${*i} * ${*j};
the direct way to do it would have been:
$self->operation_table->[$i]->[$j] = $self->elements->[$i]
* $self->elements->[$j]
can all attribute or method names be mapped with a rule like this
X => $self->X
so that I don't have to write $self in front of each of them ?
or would this cause other problems as well ?
maybe there's already some MooseX:: module that does it, I wasn't able
to find it.
--
Your bugs , they are afraid of me.