I want to define the environment ignorethis such that
\begin{ignorethis}
This will not be shown and will not take any space
\end{ignorethis}
Defining command that ignores the argument is simple:
\newcommand{\comments}[1]{}
Now, how can I define ignorethis based on comments?
Something like this, but do not know how to escape insert } and `} properly.
\newenvironment{ignorethis}{\comments{}{}}
P.S. I know about comment package but I do not want to use it as it requires fragile frames in the beamer.
MWE
\documentclass{beamer}
\newcommand{\comments}[1]{}
\newenvironment{ignorethis}{\comments{}{}}
\begin{document}
\begin{frame}
\comments{This text will be for sure invisible}
\begin{ignorethis}
How can I ignore this?
\end{ignorethis}
\end{frame}
\end{document}