i've just figured something out and i'm starting to use it but im not sure if it is really good coding style...
e.g.
Code:
//my if statements used to look like this
public void stuff()
{
if(abc)
{
doSomething(x);
}
else
{
doSomething(y);
}
}
//but now they look like this
public void stuff2()
{
if(abc)
{
doSomething(x);
return;
}
doSomething(y);
}
is this a good idea? doesn't matter? or should I stick to the regular if/else situation.