Quote:
Originally Posted by Tricxta
Whats peoples on thoughts as far as readability goes if I did:
NPC Code:
function onCreated()echo "Hello world!";
I think it improves readability as its a smaller area to focus on however some might argue it decreases readability, can someone please clarify this?
|
The most important thing is consistency. However, I don't think there's a scripter who wouldn't smack you for doing that, especially since the echo is GS1. It doesn't improve readability to exclude braces, it just makes it harder to change later.
PHP Code:
function onCreated() {
echo("Hello world!");
}