prototype, RapydScript’s class inheritance system is more intuitive than Python’s. RapydScript can create object literals (similar to C structs), create anonymous multi-line functions, and do some other goodies that pure Python can not. You can use
stdlib.js in your project altogether and replace it with
undefined variable, not an
IndexError (likewise, 1/0 is
infinity). You can’t use negative indexes to traverse arrays in reverse (you can use negative indexes via
list.__getitem__(), however). It turns out, however, that for properly written code, these disadvantages aren’t a problem. As long as you understand that the language is not pure Python, and the coding style a bit different, you will not have problems with RapydScript.
- Classes and Inheritance
- Python Standard Library (only a portion of it is included so far, but more will be with time)
- Clean, easy-to-read, Pythonic syntax
- Better Variable Scoping (and Variable Shadowing)
- Implicit Tuple Packing/Unpacking
- Better Optional Argument Implementation
- List comprehensions
- Ability to import multiple modules into a single chunk of code (allowing easier code reuse)
So who should use RapydScript?
RapydScript in Commercial Projects
import those libraries into your project without being forced to open-source your entire front-end. I ask that other developers submitting new libraries for RapydScript also use a permissive license, but that is up to the developer.