In mathematics, the notion of a continuous/smooth/analytic function $\mathbb{R}\to\mathbb{R}$ is introduced by defining the general set-theoretic function $\mathbb{R}\to\mathbb{R}$ and then imposing the corresponding (restrictive) conditions on it.
In my opinion this is not satisfactory since an arbitrary set-theoretic function $\mathbb{R}\to\mathbb{R}$ is a “horrendous”, too wide and unstructured object (that does not mean that an arbitrary continuous function $\mathbb{R}\to\mathbb{R}$ is not “horrendous”, but there is less of them for starters).
My question.Is there some way to reframe the foundations so that there is a "intrinsic" way to define continuous/smooth/analytic functions $\mathbb{R}\to\mathbb{R}$? I want such a definition where a continuous/smooth/analytic function is not a set-theoretic function having a particular property but an atomic notion.
This is in some ways similar to the following question which asks if a particular homotopy type can be defined in HoTT without replicating the set-theoretic definitions.