Category:XBS: Difference between revisions

Content added Content deleted
mNo edit summary
No edit summary
Line 27: Line 27:
}
}
log(FirstFunction(1,2));</lang>
log(FirstFunction(1,2));</lang>

== Typed XBS ==

XBS has another version which is typed, and has improved features. Typed XBS allows better function defaults, variable types, function return types, function parameter types, improved expressional parsing, custom datatype methods, and some other features. Currently, typed XBS is implemented in the XBS Code Editor, which can be found in the links category.
<lang xbs>func Add(a:number=1,b:number=2):number{
send a+b; #Add a & b
}

log(Add(2,2));
log(Add());</lang>

<lang xbs>set String = "Hello, world!";
log(String::reverse())</lang>


----
----