Raveen Kumar

When to use implicit else

https://medium.com/lost-but-coding/when-to-use-implicit-else-e891cdcfe1bd

The author describes an ‘implicit else’. I’ve never heard of such a thing. Turns out it’s just doing this:

if (x) {
  return y;
 }
return z;

instead of this:

if (x) {
  return y;
 } else {
  return z;
 }

#Programming #Error #Bug