It's not been pointed out yet, but your syntax is wrong. In "$L(0,e^x)$" the variable "$x$" is undefined, so the whole thing is meaningless if you want $L$ to be a function. The point is that not all syntax is literally a function. The limit notation includes a limiting variable, which is not expressible in terms of functions in the usual sense. It is the same with summation; in "$\sum_{k=1}^n f(k)$" the "$f(k)$" is an expression with one free variable $k$, not a function, and neither is "$\sum_{k=1}^n$" a function since it binds the variable $k$. It is also the same with quantifiers; in "$∀x ∃y ( Q(x,y) )$" the "$∀x$" is certainly not a function.
So if you want to treat the limiting operation as an abstract mathematical object, you need to reify the relevant expressions and syntactic structure. peek-a-boo has shown you one way to do that for limits, but I will show you how to do that for summation to make the underlying concept clearer. Reification simply means to capture the 'essence' of a concept by an object.
We typically define summation for commutative rings. Given any commutative ring $(R,0,1,+,·)$ and any function $f : D→R$ with $D⊆ℤ$, we can define $S(f,m,n) = \sum_{k=m}^n f(k)$ for every $m,n∈D$. Here $f$ reifies the expression "$f(k)$" with free variable $k$, in the sense that applying $f$ to the value of an expression "$t$" captures the essence of the expression "$f(t)$" (i.e. the value of "$f(k)$" after substituting the free variable by the term "$t$"). And $S$ reifies the concept of $\sum_{k=m}^n E$ built from expressions E,m,n where $E$ has one free variable $k$.
Importantly, notice that the free variable does matter in the syntactic constructions; "$\sum_{k=m}^n f(i)$" would not mean $\sum_{k=m}^n f(k)$. But this issue of matching free variables does not appear in the reified parts. This commonly occurs in reifying most mathematical notation, including quantifiers, summations/products, limits and so on.
Also, if you do want to formalize reasoning about limits in a clean algebraic manner and also be able to deal with undefined limits algebraically, then the best approach is to extend the possible limit values to include some sentinel value, say $null$, and then define $L(f,x)$ to be the limit of $f$ at $x$ if it exists but $null$ otherwise, for any function $f : D→ℂ$ with $x∈D⊆ℂ$.