inference for nicer syntax

thanks @pcwalton @dbaupp :heart: