compiler: use generator expression only when [generator expression] is not required