@Thorgott Thank you. I was studying the differentiability at $x=1$ of the function defined piecewise as $f(x)=x^2$ if $x \in (0,2) \cap \mathbb{Q}$, $f(x)=2x-1$ if $x\in (0,2) \cap \mathbb{R}\setminus\mathbb{Q}$ . I have distinguished the cases $1+h \in (0,2) \cap \mathbb{Q}$ or $1+h \in (0,2) \cap \mathbb{R}\setminus\mathbb{Q}$ to evaluate $f(1+h)$, while the author uses two sequences of rationals/irrationals converging to $1$.
Is my approach correct as well or am I missing something? To me, using sequences seems overcomplicated and, usually, when something seems overcomplicated to me is …