![]() |
Quote:
|
Quote:
|
Quote:
And I think Stefan should make the compiler optimize if (var == true) since that looks nicer than if (var) which makes me think of the horrors of GS1. |
Except Gscipt isn't compiled it's interpreted. If it were compiled then the compiler could optimise the statement (by turning it into if (var) ) but since it's interpreted I don't think theres any way to do it.
Anyway, the difference in speed is negligible. Just use if (var == true) if it makes it easier to read. |
Everyone has their own style of coding, and they can read it. It doesn't matter if other people can't. I style similar to Skyld's styling, mainly because I find his scripts readable and he kinda pushed me to it :P
|
GScript is not interpreted, its Compiled when you save the script. Thats how scripts are sent to the client Pre-Compiled like Stefan said. Unless Stefan has a different definition of Compiled.
|
I think they are optimised a bit and compiled into byte code.
|
Its compiled into byte code, because they're all stored on your computer if you look closely enough.
Every time you add yourself a weapon, that compiled code goes directly into your computer, probably to lessen the load on the server. |
if (var) always reminded me of GS1 ... I still have nightmares about that.
|
PHP Code:
|
Quote:
The compiler could potentially optimise the code then. |
Quote:
|
I would find it annoying if I wrote
PHP Code:
PHP Code:
|
Usually the ammount of styling and the importance of a scripter's styling to himself usually reflects his skill with Graal coding.
Pretty hard to do complex scripts if you have horrible spacing ;) |
Quote:
|
All times are GMT +2. The time now is 08:35 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.