Developer Guide
- Last UpdatedApr 24, 2024
- 1 minute read
In this section of the documentation, you can find a description of the following:
-
The predefined static classes implemented in the XRS Script language.
-
The steps necessary to start a project using the new XRS Script language.
Benefits
XRS Script language has been designed to:
-
Improve ease of use, such as leverage existing scripting skillset by introducing a language whose syntax is similar to other existing languages (c#, javascript, python) that developers should be more familiar with.
-
Be fully sandboxed; that is, interpreted (not compiled) to increase security and real-time checks.
-
Have no dependencies, as it is fully self-contained in order to be able to fully scrutinize security.
-
Be optimized for the framework uses and integrated inside the framework systems.
-
Be portable, since it works on every device that support the framework (Windows, Portable, Web….).
-
Be easily testable, as it supports assert and other techniques to possibly create unit tests in the script language.
-
Provide clear error messages for easy debugging.
-
Improve code readability and performance.
XRS Script language is not conceived as a substitute of XML Script language. Instead, both scripting languages can coexist in the same project, as both have their limitations and strengths.
It is advisable to architecture application logic using a mix of the two: XML Script should be used for parse-time definitions, routing and parse-time switches (such as conditional inclusion of logic blocks based on current platform); while XRS Script should be used for imperative method definitions.