I'd like \mycomment in the document below to be such that it automatically puts its argument against the right margin on the current line if it fits and otherwise against the right margin on the next line.
How do I do this?
\documentclass{article}
\newcommand{\mycomment}[1]{\hfill\emph{#1}}
\usepackage[letterpaper,margin=2in]{geometry}
\begin{document}
\begin{enumerate}
\item Hello, how are you today? \mycomment{alright!}
\item yayayayayya 4kwerjejffkler ejjkerjgejkrnnjrnejkn ekwjewjrwwejk \mycomment{this does not fit on the same line}
\end{enumerate}
\end{document}

\hspace*{\fill}not\hfill– David Carlisle Dec 16 '15 at 11:24