Note: Links are subject to change.
http://www.wiremod.com/forum/developers-showcase/22739-starfall-processor.html
.http://sf.inp.io
.If you want to contribute to Starfall, you are required to abide by these sets of rules, to make developing Starfall a pleasant experience for everyone and to maintain the quality of the codebase.
Commit message guidelines
Added function: newFunction()
; Bad: fixing the fix of the fix
."fixes and changes"
.Codestyle guidelines
//
, /**/
, &&
, ||
, etc.camelCase
, constructor functions, however, are supposed to be in CamelCase
.print( "Hello" )
& function f ( args )
& f( args )
.f( a1, a2, a3 ); f2( a1, a2, a3 )
._deserialize[ lastType ]( s, i, len )
& tbl[ 5 ] = "bob"
.local tbl = { "Hi", 2, var }
Table literals must be delimited by commas which proceed their values. The last value must not have a proceeding comma.
E.g
local tbl2 = {
"Multi-line",
2,
lastVal
}
function func ( var1, var2 )
.local var = 5 + 3
and local var2 = -var + 3
.var = 5; var2 = 10; var3 = 15
.a = b and c or d
, is only permitted if used as a ternary operator. Do not use it for program logic.
print( a and "Hello" or "Hi" )
; Bad: a and print("Hello") or print("Hi")
;Release strategy
Major.Minor.Sub-minor
.
2.0.5
. 2.x.x
set will always be cross-compatible. helloWorld()
may become deprecated between 2.0.0
and 2.1.0
and will be removed in 3.0.0
.Major.Minor
.