Or in other words, Delphi Web Script 2.2 has been branched!
“Rich. Small. Fast. Reliable. Choose any Four”
With v2.2, DWScript is now aiming for that motto*, and this new release represents a major step forward from 2.1 in terms of language features and robustness.
DWScript 2.2.0 [1] (348 kB)
Here is a quick summary of additions to the language:
- build systems and units
- dynamic arrays
- records with methods
- universal delegates/functions pointers
- operator overloading
- class visibility scopes
- contracts programming
- class constants
- “implies” operator
- extensions to “in” / ” not in” operators
- “new” keyword for object instantiation
- $include_once
- static classes
- direct method implementation (inline in class body)
- constant records, constant arrays
- improved compiler errors, warnings and hints
- stack traces in exceptions
- misc. new language improvements and RTL functions
and there are new support tools:
- JavaScript code generation
- SynEdit highlighter for DWS
- debugger component
- profiler component
- RTTI exposure classes
- much improved unit tests coverage up to 90% overall, 93% to 100% for core units
as well as dozens of samples, which can be found at Rosetta Code [2] or in the unit tests. Feel free to show your support DWScript by clicking on the “donate” button to the right 😉
Many things are already cooking up for 2.3, some of these are already present in the SVN…
*: yes “aiming”, and yes, it’s inspired from SQLite [3], we’re not there yet, but we may as well aim high!