mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Documentation - Add spaces between array elements coding guidel… (#7524)
This commit is contained in:
parent
3145a31d00
commit
7069cb82c9
@ -397,6 +397,23 @@ Magic numbers are any of the following:
|
||||
|
||||
[Source](http://en.wikipedia.org/wiki/Magic_number_%28programming%29){:target="_blank"}
|
||||
|
||||
### 5.7 Spaces between array elements
|
||||
When using array notation `[]`, always use a space between elements to improve code readability.
|
||||
|
||||
Good:
|
||||
|
||||
```js
|
||||
params ["_unit", "_vehicle"];
|
||||
private _pos = [0, 0, 0];
|
||||
```
|
||||
|
||||
Bad:
|
||||
|
||||
```js
|
||||
params ["_unit","_vehicle"];
|
||||
private _pos = [0,0,0];
|
||||
```
|
||||
|
||||
|
||||
## 6. Code Standards
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user