In optimization, often times people like to define a so-called extended (real) valued function, that is, a function that takes on the value $\infty$ outside of its domain.
But I have noticed that people tend to downplay the distinction between an extended valued function and its unextended counterpart. For example, in Boyd's text, on page 68, it reads:
In this book we will use the same symbol to denote a convex function and its extension, whenever there is no harm from the ambiguity. convex functions are implicitly extended, i.e., are defined as $\infty$ outside their domains.
However, in the rest of the text, extended value function rarely comes up and functions are almost always denoted as $f: \mathbb{R}^n \to \mathbb{R}$ instead of $f: \mathbb{R}^n \to \mathbb{R}\cup\{\infty\}$. (why not??) I wonder if it would be better to always stick with the un-extended version instead to avoid this ambiguity.
Here is another argument as to why I think it would be better just not to talk about the notion of the extended value function. These are some pros and cons of using extended valued functions from my understanding:
Pros:
Do not have to specify domain of variables in definition of convexity
Can represent certain functions such as the indicator function $I_{\mathcal{C}}$
Cons:
Infinite arithmetic when defining convex functions
The extended real line lacks good properties as compared to $\mathbb{R}$ in a topological sense
It seems to infinite arithmetics is a heavy price to pay for using the extended valued functions. We are extending the arithmetic system, albeit a trivial and intuitively acceptable extension...
So are there strong arguments as to why one should or should not use extended value functions? How and when should one use this concept?