Scriptol 2

Changes to the Script language in the 2 version of 2014.

Reactive programming is added to the language. You can define reactive variables that automatically change value based on other variables.

The word reserved dyn is replaced by var, which is used by JavaScript and other languages .

# becomes author's comment code and replaces'.
If you want the program to run on both versions, you will only use//or/* */.

The permanent reserved word is replaced by const.

A literal table is declared with [] and not () or {}. An associative table is always declared {}. This corresponds to the JavaScript format, PHP with 5.4, and other languages .
You can also create an array with the array () constructor and this works in both versions of the language.

The control scan structure is removed and replaced with a map table method or a for loop with a key and value.

The dir type is deleted. A new type appears.

The reserved word super is added to call the constructor of the superclass.

Many features have been added and are now described in the manual.

The specified statement is now useless for passing a function as an argument. She walked right by name.

Inserting XML into the source is now different. Previously, XML was written in a lightweight form without parentheses and used DOM-specific functions to access content.
From now on, the code is written in classic XML form and converted into the target language in the form of an associative table. Dictation functions allow you to access content. You can also convert dictation to XML using the new dictation method.

Calling Java classes is no longer part of the language and is left to external bookstores .

A literal integer can be declared in binary form as 0b0101 or 0B0101.

Conditional assignment is out of date .