For some purposes it makes more sense to speak of a single $\infty$ that is approached by going in either the positive direction or the negative direction than of two separate entities called $\pm\infty$.
And for some purposes it doesn't. The function $\dfrac{1}{1+2^x}$ certainly approaches $0$ as $x\to+\infty$ and approaches $1$ as $x\to-\infty$.
But when you're talking about rational functions $f$, you have $f(x)\to\text{something}$ as $x\to\infty$, then the "something" is the same regardless of whether $x\to+\infty$ or $x\to-\infty$. (In particular, if one has a slanted asymptote and $f(x)\to+\infty$ as $x\to+\infty$ then $f(x)\to-\infty$ as $x\to-\infty$, but one can say $f(x)\to\infty$ as $x\to\infty$ and construe both instances of $\infty$ as the single $\infty$ at both ends of the line.) And one has $\dfrac{5}{x-8}\to\infty$ as $x\to 8$, and one need not distinguish between approaching $8$ from the right and approaching $8$ from the left. That makes rational functions everywhere continuous.
So also with values (i.e. outputs) of trigonometric functions, but arguments (i.e. inputs), go from $0$ to $2\pi$ and regards $0$ as the same point as $2\pi$. Then $\tan x\to\infty$ as $x\to\pi/2$, and that's just $\infty$ rather than $\pm\infty$ and one need not worry about which direction $x$ approaches $\pi/2$ from. This makes $\tan$ and the other trigonometric functions everywhere continuous.
This way of viewing things also fits well into projective geometry.
So $\dfrac1x\to0$ as $x\to\infty$ and $\dfrac1x\to\infty$ as $x\to0$, and the reciprocal function is everywhere continuous and is one-to-one.