\documentclass{article}

\begin{document}

% Who cares about hyphens - in comments?

Likewise, it's of course acceptable to use hyphens as minus signs in math mode: 

Sometimes, inline equations are tricky: \(x - (a - b)\)

\end{document}
