Alas yeah, it can actually be a big thing for tight loops in scala -- really the compiler should just optimize it. There was a project for an optimizing complier plugin to do it but it appeared dead last I saw