This seems like a pretty common pattern in high performance julia. I wonder if there’s a way to get it into a macro.