I have been studying the continuity of a convex function and having a trouble below:
In some books, the authors defined the the continuity of a convex function $f$ even $f$ is not in $\mbox{dom }f$, for example $$f(x)=\frac{1}{x} \mbox{ if } x>0, f(x) = +\infty \mbox{ if } x\leq 0,$$ is continuous on $\mathbb R$. This way may cause some unusual thought such as if $f$ is continuous at $x$ then $f$ is bounded on a neighborhood of $x$ will no longer be true.
My question is what do we need to define the continuity at points where the value of function is $\pm \infty$ for?