Non Short Circuit Operators

Code using non-short-circuit logic boolean operators (e.g., & or ∥) rather than short-circuit logic ones (&& or ∥∥). Non-short-circuit logic causes both sides of the expression to be evaluated even when the result can be inferred from knowing the left-hand side.

Reference

A. Vetro, L. Ardito, G. Procaccianti, M. Morisio, “Definition, Implementation and Validation of Energy Code Smells: An Exploratory Study on an Embedded System”. ENERGY 2013, pp. 34-39.


Energy Smells

Home

All rights reserved (c) Tushar Sharma 2017-23.