Instead of coding the unwanted outputs by the tilde, using a clear and clean input argument is better in my opinion. It is much better to see the intention of the programmer eplicitly than a smart and fancy way to hide this inside intelligent parsing.