When possible why isn't digitalWrite and read also pinMode replaced?

Arrch:
What about this?

int somePin = 13;

int someValue = HIGH;
digitalWrite(somePin, someValue);

Woops almost forgot about that the pin may be determined on execution. I will change my post to reflect that.