Is there a natural choice of topology for the set of functions from a space to itself? Particularly one that's well motivated given the categorical definition of an exponential object?
Let $X$ be a topological space with topology $\tau$.
If I have another space $X'$, there's a natural choice of topology for $X \times X'$, namely the box topology. There's a nice story behind why we pick the box topology, namely that it is the intersection of all topologies in which the projections $\pi_1 : X \times X' \to X$ and $\pi_2 : X \times X' \to X'$ are continuous.
I'm curious about $X \to X$ though (not $X \to X'$, for simplicity). I don't want to impose many assumptions on $X$ though, such as assuming that $X$ is $\mathbb{R}$-like or a topological vector space or something.
Here's an attempt to come up with a topology to impose on $X$ that makes no assumptions about $X$ other than that it's a topological space.
One possible topology I can think of for $X \to X$ is to consider the set, $B$, of all singleton sets of continuous functions from $X$ to $X$, along with the empty set. $B$ is closed under intersections, which is nice. This makes it a basis for a topology $\tau^B$.
The continuous maps in $(X \to X) \to (X \to X)$ are the ones that reflect continuity, although they don't necessarily preserve it.