On Fri, Dec 20, 2013 at 6:33 PM, Francesco Cattoglio <francesco.cattog...@gmail.com> wrote:Is there any difference between "is(typeof(<somecode>))" and __traits(compiles, <somecode>)?I find the latter cleaner: its intent is more apparent. I use is(typeof()) only for really testing for type existence.
AFAIK, there is no real difference, but "is(typeof())" is more "idiomatic" in phobos.