Input Pullups

I have a micro limit switch on analog 0 pin which uses:

pinMode(A0, INPUT);
digitalWrite(A0, HIGH);

I'm wondering if instead of those 2 lines I should be using:

pinMode(A0, INPUT_PULLUP);

Is that the newer method to use which does the same thing basically?

Does not matter.

It does the same only INPUT_PULLUP is introduced to do it in one simple line.

Ok, thanks guys.