Elegant way of diff'ing two variables?

I have $a and $b. I want to run diff on those. The best I have come up with is: diff <(cat <<<"$a") <(cat <<<"$b") But I have the district feeling that I am missing a cle...