The Dirichlet function: $$f(x) = \begin{cases} 0, & \text{if $x$ is rational} \\ 1, & \text{if $x$ is irrational } \end{cases}$$ is an example of a function that is discontinuous everywhere on its domain , but a question that came to my mind is there any other function ?
Let $S$ be a dense set on $[0,1]$ such that $[0,1]- S$ is still a dense set,
$$g(x) = \begin{cases} 0, & \text{if $x \in S$} \\ 1, & \text{if $x \not\in S$ } \end{cases}$$ This function will do the same trick as Dirichlet function.
My question is : Is there any way a function $f:[0,1] \to \mathbb{R}$ could be discontinuous everywhere on $[0,1]$ without choosing a dense set $S$ such that such that $[0,1]- S$ is still dense and assigning two functions that don't intersect each other in $[0,1]$ to each one of them ? (for example : $$f(x) = \begin{cases} x, & \text{if $x \in S$} \\ \tan(x)+1, & \text{if $x \not\in S$ } \end{cases}$$ is the same as the Dirichlet function 2 disjoint dense sets and for each one of them we assign a function that these function don't intersect each other if there domain with the whole $[0,1]$)
I don't think that is possible for such function to exist because it had to "jump" back and forth infinity many times but I couldn't prove that.