Jump to content

Category:XBS: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 27:
}
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>
 
----
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.