Quote:
Originally Posted by cbk1994
Please don't teach people to exclude braces for one-line statements  . It's a hard habit to break, and it just makes it a pain when you try to change code later.
|
I dont see a huge problem in using one line codes without brackets for certain instances.
PHP Code:
function check(x, y) {
if (x == y) return true;
}
Like in that instance. Does it really make it any more readable...any more efficient...any more
anything by adding the brackets?